~phablet-team/telephony-service/trunk

« back to all changes in this revision

Viewing changes to approver/approver.h

  • Committer: CI bot
  • Author(s): Michael Terry
  • Date: 2014-02-06 14:19:18 UTC
  • mfrom: (762.2.2 greeter)
  • Revision ID: ps-jenkins@lists.canonical.com-20140206141918-68sl1hbl9wcomb3s
Share current call contact info with the greeter. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <unistd.h>
27
27
#include <libnotify/notify.h>
28
28
 
 
29
#include <QContact>
29
30
#include <QMap>
30
31
#include <TelepathyQt/AbstractClientApprover>
31
32
#include <TelepathyQt/PendingReady>
32
33
#include <TelepathyQt/ChannelDispatchOperation>
33
34
 
 
35
class GreeterContacts;
 
36
 
34
37
class Approver : public QObject, public Tp::AbstractClientApprover
35
38
{
36
39
    Q_OBJECT
61
64
    void onHangupAndAcceptCallRequested();
62
65
    void onAcceptCallRequested();
63
66
    void onRejectCallRequested();
 
67
    void updateNotification(const QtContacts::QContact &contact);
64
68
 
65
69
private:
66
70
    QList<Tp::ChannelDispatchOperationPtr> mDispatchOps;
67
71
    QMap<Tp::PendingOperation*,Tp::ChannelPtr> mChannels;
68
72
    NotifyNotification* mPendingSnapDecision;
 
73
    GreeterContacts *mGreeterContacts;
 
74
    QString mDefaultTitle;
 
75
    QString mDefaultIcon;
 
76
    QString mCachedBody;
69
77
};
70
78
 
71
79
#endif // APPROVER_H