~ubuntu-branches/ubuntu/wily/ktp-kded-integration-module/wily

« back to all changes in this revision

Viewing changes to contact-cache.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2014-04-28 17:19:19 UTC
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: package-import@ubuntu.com-20140428171919-ke3pvqbgz6k48bmq
Tags: upstream-0.8.1
ImportĀ upstreamĀ versionĀ 0.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <QObject>
24
24
#include <QSqlDatabase>
 
25
#include <QStringList>
25
26
#include <TelepathyQt/Types>
26
27
 
27
28
namespace Tp {
28
29
class PendingOperation;
29
30
}
30
31
 
 
32
QT_BEGIN_NAMESPACE
 
33
class QSqlQuery;
 
34
QT_END_NAMESPACE
 
35
 
31
36
class ContactCache : public QObject
32
37
{
33
38
    Q_OBJECT
48
53
    bool accountIsInteresting(const Tp::AccountPtr &account) const;
49
54
    void syncContactsOfAccount(const Tp::AccountPtr &account);
50
55
    void checkContactManagerState(const Tp::ContactManagerPtr &contactManager);
 
56
 
 
57
    int askIdFromGroup(const QString &groupName);
 
58
    void bindContactToQuery(QSqlQuery *query, const Tp::ContactPtr &contact);
51
59
    QSqlDatabase m_db;
 
60
    QStringList m_groups;
52
61
};
53
62
 
54
63
#endif // CONTACTCACHE_H