phonebookengines/cntlistmodel/inc/cntpresenceinfoprovider.h
changeset 61 d30183af6ca6
parent 46 efe85016a067
equal deleted inserted replaced
56:d508aa856878 61:d30183af6ca6
    17 */
    17 */
    18 
    18 
    19 #ifndef CNTPRESENCEINFOPROVIDER_H
    19 #ifndef CNTPRESENCEINFOPROVIDER_H
    20 #define CNTPRESENCEINFOPROVIDER_H
    20 #define CNTPRESENCEINFOPROVIDER_H
    21 
    21 
    22 #include "cntinfoprovider.h"
    22 #include <cntinfoprovider.h>
    23 #include <qcontact.h>
    23 #include <qcontact.h>
    24 
    24 
    25 class PrcPresenceReader;
    25 class PrcPresenceReader;
    26 class PrcPresenceBuddyInfoQt;
    26 class PrcPresenceBuddyInfoQt;
    27 
    27 
    52 private slots:
    52 private slots:
    53     void handlePresenceUpdate(bool aSuccess, PrcPresenceBuddyInfoQt* aPresenceBuddyInfo);
    53     void handlePresenceUpdate(bool aSuccess, PrcPresenceBuddyInfoQt* aPresenceBuddyInfo);
    54     
    54     
    55 private:
    55 private:
    56     QString parsePresence(const QList<PrcPresenceBuddyInfoQt*>& buddyList);
    56     QString parsePresence(const QList<PrcPresenceBuddyInfoQt*>& buddyList);
       
    57 
       
    58 signals:
       
    59     void infoFieldReady(CntInfoProvider* sender, int contactId, ContactInfoField field, const QString& value);
    57     
    60     
    58 private:
    61 private:
    59     PrcPresenceReader*              iReader; // owned
    62     PrcPresenceReader*              iReader; // owned
    60     QContactManager*                mManager; // owned
    63     QContactManager*                mManager; // owned
    61     QMap<QString, QContactLocalId>  mBuddyMap;
    64     QMap<QString, QContactLocalId>  mBuddyMap;