~ps-jenkins/telepathy-ofono/utopic-proposed

« back to all changes in this revision

Viewing changes to connection.h

  • Committer: Tiago Salem Herrmann
  • Date: 2013-12-11 14:52:03 UTC
  • mto: This revision was merged to the branch mainline in revision 57.
  • Revision ID: tiago.herrmann@canonical.com-20131211145203-qarhg90rntygc1v2
add support for delivery reports

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
// qt
23
23
#include <QTimer>
 
24
#include <QSqlDatabase>
24
25
 
25
26
// telepathy-qt
26
27
#include <TelepathyQt/BaseConnection>
52
53
class oFonoCallChannel;
53
54
class MMSDService;
54
55
 
 
56
struct PendingMessage
 
57
{
 
58
    QString recipientId;
 
59
    QDateTime timestamp;
 
60
};
 
61
 
55
62
class oFonoConnection : public Tp::BaseConnection
56
63
{
57
64
    Q_OBJECT
93
100
                                         uint targetHandle, Tp::DBusError *error);
94
101
 
95
102
    ~oFonoConnection();
 
103
    void addPendingMessage(const QString &objectPath, const QString &id);
 
104
    void removePendingMessage(const QString &objectPath);
 
105
    void populatePendingMessages();
 
106
 
96
107
Q_SIGNALS:
97
108
    void speakerModeChanged(bool active);
98
109
 
114
125
    void onMMSPropertyChanged(QString property, QVariant value);
115
126
    void onCheckMMSServices();
116
127
    void onMessageRead(const QString &id);
 
128
    void onDeliveryReportReceived(const QString &messageId, const QVariantMap &info);
117
129
 
118
130
private:
119
131
    bool isNetworkRegistered();
138
150
    QMap<QString, MMSDService*> mMmsdServices;
139
151
    QMap<QString, QList<MMSDMessage*> > mServiceMMSList;
140
152
    bool mSpeakerMode;
 
153
    QSqlDatabase mDatabase;
 
154
    QHash<QString, PendingMessage> mPendingMessages;
141
155
};
142
156
 
143
157
#endif