diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-10-30 18:59:52 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-10-30 18:59:52 +0000 |
commit | b35ee0b14ec252c54e122a563404c4b808edcf3b (patch) | |
tree | 317a72a2111a7b2ac99f72760976ffa72cd6dd1d /protocols/Skype/src/skype_subclassing.h | |
parent | 7d6632d24db3879fc37c026d80920af3a5395359 (diff) |
added page in userinfo with additional data
git-svn-id: http://svn.miranda-ng.org/main/trunk@2116 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_subclassing.h')
-rw-r--r-- | protocols/Skype/src/skype_subclassing.h | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/protocols/Skype/src/skype_subclassing.h b/protocols/Skype/src/skype_subclassing.h index 17b8f1f1c2..16ea04f276 100644 --- a/protocols/Skype/src/skype_subclassing.h +++ b/protocols/Skype/src/skype_subclassing.h @@ -19,13 +19,13 @@ public: void SetOnMessageReceivedCallback(OnMessageReceived callback, CSkypeProto* proto);
-private: +private:
CSkypeProto* proto;
OnMessageReceived callback;
void OnMessage(const MessageRef & message);
};
-class CContact : public Contact +class CContact : public Contact
{
public:
typedef void (CSkypeProto::* OnContactChanged)(CContact::Ref contact, int);
@@ -33,44 +33,44 @@ public: typedef DRef<CContact, Contact> Ref;
typedef DRefs<CContact, Contact> Refs;
- CContact(unsigned int oid, SERootObject* root); - - void SetOnContactChangedCallback(OnContactChanged callback, CSkypeProto* proto); - -private: + CContact(unsigned int oid, SERootObject* root);
+
+ void SetOnContactChangedCallback(OnContactChanged callback, CSkypeProto* proto);
+
+private:
CSkypeProto* proto;
- OnContactChanged callback; - - void OnChange(int prop); + OnContactChanged callback;
+
+ void OnChange(int prop);
};
-class CContactSearch : public ContactSearch -{ -public: - typedef void (CSkypeProto::* OnSearchCompleted)(HANDLE hSearch); - typedef void (CSkypeProto::* OnContactFinded)(HANDLE hSearch, CContact::Ref contact); - - typedef DRef<CContactSearch, ContactSearch> Ref; - typedef DRefs<CContactSearch, ContactSearch> Refs; - - bool isSeachFinished; - bool isSeachFailed; - - CContactSearch(unsigned int oid, SERootObject* root); - - void OnChange(int prop); - void OnNewResult(const ContactRef& contact, const uint& rankValue); - - void SetProtoInfo(CSkypeProto* proto, HANDLE hSearch); - void SetOnSearchCompleatedCallback(OnSearchCompleted callback); - void SetOnContactFindedCallback(OnContactFinded callback); - - void BlockWhileSearch(); +class CContactSearch : public ContactSearch
+{
+public:
+ typedef void (CSkypeProto::* OnSearchCompleted)(HANDLE hSearch);
+ typedef void (CSkypeProto::* OnContactFinded)(HANDLE hSearch, CContact::Ref contact);
+
+ typedef DRef<CContactSearch, ContactSearch> Ref;
+ typedef DRefs<CContactSearch, ContactSearch> Refs;
+
+ bool isSeachFinished;
+ bool isSeachFailed;
+
+ CContactSearch(unsigned int oid, SERootObject* root);
+
+ void OnChange(int prop);
+ void OnNewResult(const ContactRef& contact, const uint& rankValue);
+
+ void SetProtoInfo(CSkypeProto* proto, HANDLE hSearch);
+ void SetOnSearchCompleatedCallback(OnSearchCompleted callback);
+ void SetOnContactFindedCallback(OnContactFinded callback);
+
+ void BlockWhileSearch();
private:
HANDLE hSearch;
CSkypeProto* proto;
- OnSearchCompleted SearchCompletedCallback; - OnContactFinded ContactFindedCallback; + OnSearchCompleted SearchCompletedCallback;
+ OnContactFinded ContactFindedCallback;
};
class CContactGroup : public ContactGroup
@@ -92,36 +92,36 @@ private: OnContactListChanged callback;
void OnChange(const ContactRef& contact);
-}; - +};
+
class CAccount : public Account
{
-public: - typedef void (CSkypeProto::* OnAccountChanged)(int); - - typedef DRef<CAccount, Account> Ref; - typedef DRefs<CAccount, Account> Refs; - - bool isLoggedIn; - bool isLoggedOut; - LOGOUTREASON logoutReason; - char logoutReasonString[2048]; - - CAccount(unsigned int oid, SERootObject* root); - - void BlockWhileLoggingIn(); - void BlockWhileLoggingOut(); +public:
+ typedef void (CSkypeProto::* OnAccountChanged)(int);
+
+ typedef DRef<CAccount, Account> Ref;
+ typedef DRefs<CAccount, Account> Refs;
+
+ bool isLoggedIn;
+ bool isLoggedOut;
+ LOGOUTREASON logoutReason;
+ char logoutReasonString[2048];
+
+ CAccount(unsigned int oid, SERootObject* root);
+
+ void BlockWhileLoggingIn();
+ void BlockWhileLoggingOut();
bool IsOnline();
- void SetOnAccountChangedCallback(OnAccountChanged callback, CSkypeProto* proto); - -private: + void SetOnAccountChangedCallback(OnAccountChanged callback, CSkypeProto* proto);
+
+private:
CSkypeProto* proto;
OnAccountChanged callback;
- void OnChange(int prop); -}; - + void OnChange(int prop);
+};
+
class CSkype : public Skype
{
public:
|