summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/QuotesProviderBase.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-12-21 09:49:05 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-12-21 09:49:05 +0000
commit9b119cadd74e1343cad493e8b366e69743a620d0 (patch)
treee11d3923e86eb667f1a2f20e1126066e51ed73ce /plugins/Quotes/src/QuotesProviderBase.h
parent1b85ad91e7aa1af9d295d399e560a2adc6d413d3 (diff)
Quotes: changed warning level to w4
git-svn-id: http://svn.miranda-ng.org/main/trunk@11552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/src/QuotesProviderBase.h')
-rw-r--r--plugins/Quotes/src/QuotesProviderBase.h42
1 files changed, 26 insertions, 16 deletions
diff --git a/plugins/Quotes/src/QuotesProviderBase.h b/plugins/Quotes/src/QuotesProviderBase.h
index 62d551f4b6..6e923b693c 100644
--- a/plugins/Quotes/src/QuotesProviderBase.h
+++ b/plugins/Quotes/src/QuotesProviderBase.h
@@ -7,12 +7,12 @@ public:
class CQuote
{
public:
- CQuote(const tstring& rsID = _T(""),const tstring& rsSymbol = _T(""),const tstring& rsName = _T(""))
- : m_sSymbol(rsSymbol),m_sName(rsName),m_sID(rsID){}
+ CQuote(const tstring& rsID = _T(""), const tstring& rsSymbol = _T(""), const tstring& rsName = _T(""))
+ : m_sSymbol(rsSymbol), m_sName(rsName), m_sID(rsID){}
- const tstring& GetSymbol()const{return m_sSymbol;}
- const tstring& GetName()const{return m_sName;}
- const tstring& GetID()const{return m_sID;}
+ const tstring& GetSymbol()const{ return m_sSymbol; }
+ const tstring& GetName()const{ return m_sName; }
+ const tstring& GetID()const{ return m_sID; }
private:
tstring m_sSymbol;
@@ -27,21 +27,31 @@ public:
typedef std::vector<CQuote> TQuotes;
public:
- CQuoteSection(const tstring& rsName = _T(""),const TSections& raSections = TSections(),const TQuotes& raQuotes = TQuotes())
- : m_sName(rsName),m_aSections(raSections),m_aQuotes(raQuotes){}
+ CQuoteSection(const tstring& rsName = _T(""), const TSections& raSections = TSections(), const TQuotes& raQuotes = TQuotes())
+ : m_sName(rsName), m_aSections(raSections), m_aQuotes(raQuotes){}
const tstring& GetName()const
- {return m_sName;}
+ {
+ return m_sName;
+ }
size_t GetSectionCount()const
- {return m_aSections.size();}
+ {
+ return m_aSections.size();
+ }
CQuoteSection GetSection(size_t nIndex)const
- {return ((nIndex < m_aSections.size()) ? m_aSections[nIndex] : CQuoteSection());}
+ {
+ return ((nIndex < m_aSections.size()) ? m_aSections[nIndex] : CQuoteSection());
+ }
size_t GetQuoteCount()const
- {return m_aQuotes.size();}
+ {
+ return m_aQuotes.size();
+ }
CQuote GetQuote(size_t nIndex)const
- {return ((nIndex < m_aQuotes.size()) ? m_aQuotes[nIndex] : CQuote());}
+ {
+ return ((nIndex < m_aQuotes.size()) ? m_aQuotes[nIndex] : CQuote());
+ }
private:
tstring m_sName;
@@ -61,7 +71,7 @@ public:
const CQuoteSection& GetQuotes()const;
-// void SetSettingsEvent();
+ // void SetSettingsEvent();
virtual bool Init();
virtual const CProviderInfo& GetInfo()const;
@@ -72,14 +82,14 @@ public:
virtual void RefreshAllContacts();
virtual void RefreshSettings();
virtual void RefreshContact(MCONTACT hContact);
-// virtual void SetContactExtraIcon(MCONTACT hContact)const;
+ // virtual void SetContactExtraIcon(MCONTACT hContact)const;
protected:
const tstring& GetURL()const;
MCONTACT CreateNewContact(const tstring& rsName);
static bool IsOnline();
- static void SetContactStatus(MCONTACT hContact,int nNewStatus);
- void WriteContactRate(MCONTACT hContact,double dRate,const tstring& rsSymbol = _T(""));
+ static void SetContactStatus(MCONTACT hContact, int nNewStatus);
+ void WriteContactRate(MCONTACT hContact, double dRate, const tstring& rsSymbol = _T(""));
private:
virtual void RefreshQuotes(TContracts& anContacts) = 0;