diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2012-09-28 05:35:12 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2012-09-28 05:35:12 +0000 |
commit | b22b6804903e1e8e0e51fd8c78d928f0204672b5 (patch) | |
tree | f369ac01abb576c2b1cb1798a29de166b28b7894 /protocols/Skype/src/skype_subclassing.h | |
parent | f67a19f8cae9d4532e908a75b9f921cfdc596f54 (diff) |
- added some function to contacs loading
git-svn-id: http://svn.miranda-ng.org/main/trunk@1697 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_subclassing.h')
-rw-r--r-- | protocols/Skype/src/skype_subclassing.h | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/protocols/Skype/src/skype_subclassing.h b/protocols/Skype/src/skype_subclassing.h index ffb971b828..5cd42cf5c3 100644 --- a/protocols/Skype/src/skype_subclassing.h +++ b/protocols/Skype/src/skype_subclassing.h @@ -2,14 +2,31 @@ #include <skype-embedded_2.h>
-class CAccount;
-
-class CSkype : public Skype
+class CContact : public Contact {
public:
- Account* newAccount(int oid);
+ typedef DRef<CContact, Contact> Ref;
+ typedef DRefs<CContact, Contact> Refs;
+
+ CContact(unsigned int oid, SERootObject* root); + +protected: + void OnChange(int prop); };
+class CContactGroup : public ContactGroup
+{
+public:
+ typedef DRef<CContactGroup, ContactGroup> Ref;
+ typedef DRefs<CContactGroup, ContactGroup> Refs;
+ CContactGroup(unsigned int oid, SERootObject* root);
+
+ CContact::Refs ContactList;
+
+protected:
+ void OnChange(const ContactRef& contact);
+}; + class CAccount : public Account
{
public: @@ -19,13 +36,16 @@ public: bool isLoggedOut; CAccount(unsigned int oid, SERootObject* root); - void OnChange(int prop); void BlockWhileLoggingIn(); void BlockWhileLoggingOut(); -}; -class CContact : public Contact -{ +protected: + void OnChange(int prop); }; +class CSkype : public Skype
+{
+public:
+ CAccount* newAccount(int oid);
+};
\ No newline at end of file |