phonebookui/pbkcommonui/inc/cntpresencelistener.h
changeset 65 ae724a111993
parent 59 a642906a277a
equal deleted inserted replaced
59:a642906a277a 65:ae724a111993
    41     friend class TestCntPresenceListener;
    41     friend class TestCntPresenceListener;
    42     
    42     
    43     Q_OBJECT
    43     Q_OBJECT
    44     
    44     
    45 public:
    45 public:
    46     CntPresenceListener(const QContact& contact, QObject* parent = NULL);
    46     CntPresenceListener(QObject* parent = NULL);
    47     ~CntPresenceListener();
    47     ~CntPresenceListener();
    48     
    48     
    49     QMap<QString, bool> initialPresences(bool &combinedOnlineStatus);
    49     QMap<QString, bool> initialPresences(const QContact& contact, bool &combinedOnlineStatus);
    50     
    50     
    51 private slots:
    51 private slots:
    52     void handlePresenceUpdate(bool aSuccess, PrcPresenceBuddyInfoQt* aPresenceBuddyInfo);
    52     void handlePresenceUpdate(bool aSuccess, PrcPresenceBuddyInfoQt* aPresenceBuddyInfo);
    53     
    53     
    54 private:
    54 private:
    61     void fullPresenceUpdated(bool online);
    61     void fullPresenceUpdated(bool online);
    62     
    62     
    63 private:
    63 private:
    64     PrcPresenceReader*  mReader; // own
    64     PrcPresenceReader*  mReader; // own
    65     QStringList         mAccountList;
    65     QStringList         mAccountList;
    66     
       
    67     const QContact&     mContact;
       
    68     
       
    69 };
    66 };
    70 
    67 
    71 #endif // CNTPRESENCELISTENER_H
    68 #endif // CNTPRESENCELISTENER_H