diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-03-23 10:18:25 +0000 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-07-17 16:39:42 +0200 |
commit | 1fd537d7582178114005cd3e3c0b90d4db7719cd (patch) | |
tree | 91712333d18e4ee7a9c2d983a9f76703657d8105 /tubes/inc | |
parent | 0338b92fd4feccbae6d7a4f0a5046ad149fac387 (diff) |
WIP
Diffstat (limited to 'tubes/inc')
-rw-r--r-- | tubes/inc/tubes/contact-list.hxx | 5 | ||||
-rw-r--r-- | tubes/inc/tubes/manager.hxx | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/tubes/inc/tubes/contact-list.hxx b/tubes/inc/tubes/contact-list.hxx index bf1e0f79d149..a17b1103d96f 100644 --- a/tubes/inc/tubes/contact-list.hxx +++ b/tubes/inc/tubes/contact-list.hxx @@ -42,12 +42,9 @@ typedef ::std::vector< AccountContactPair > AccountContactPairV; class TUBES_DLLPUBLIC ContactList { public: - ContactList(); + ContactList(TpAccountManager *pAccountManager); ~ContactList(); - typedef void (*PrepareCallback)( GError *errorOr0, void *user_data ); - void prepare( PrepareCallback callback, void *user_data ); - AccountContactPairV getContacts(); private: diff --git a/tubes/inc/tubes/manager.hxx b/tubes/inc/tubes/manager.hxx index aa6a027726af..3d557ad5b458 100644 --- a/tubes/inc/tubes/manager.hxx +++ b/tubes/inc/tubes/manager.hxx @@ -33,6 +33,7 @@ #include "tubes/tubesdllapi.h" #include "tubes/conference.hxx" #include "tubes/packet.hxx" +#include "tubes/contact-list.hxx" #include <rtl/ustring.hxx> #include <salhelper/thread.hxx> #include <rtl/ref.hxx> @@ -82,7 +83,7 @@ public: TeleManager( const Link& rLink, bool bCreateOwnGMainLoop = false ); ~TeleManager(); - /** Prepare the Telepathy Account Manager. + /** Prepare the Telepathy Account Manager. Requires connect() to have succeeded. Invokes an async call that is not ready until meAccountManagerStatus is set! Until that is AMS_PREPARED nothing else will work. @@ -92,6 +93,11 @@ public: void prepareAccountManager(); AccountManagerStatus getAccountManagerStatus() const; + /** Fetches the contact list. Returns 0 before connect() is called successfully. + Is non-functional until prepareAccountManager(). + */ + ContactList* getContactList(); + #if 0 /** Start a group session in a MUC. |