~ps-jenkins/telepathy-ofono/ubuntu-vivid-proposed

« back to all changes in this revision

Viewing changes to connection.h

  • Committer: Tiago Salem Herrmann
  • Date: 2013-07-08 15:55:12 UTC
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: tiago.herrmann@canonical.com-20130708155512-0n61cdowordh9sev
add initial mms support

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#include "ofonotextchannel.h"
43
43
#include "ofonocallchannel.h"
44
44
#include "voicemailiface.h"
 
45
#include "mmsdmanager.h"
 
46
#include "mmsdmessage.h"
 
47
#include "dbustypes.h"
45
48
 
46
49
class oFonoConnection;
47
50
class oFonoTextChannel;
48
51
class oFonoCallChannel;
 
52
class MMSDService;
49
53
 
50
54
class oFonoConnection : public Tp::BaseConnection
51
55
{
96
100
    void onTextChannelClosed();
97
101
    void onCallChannelClosed();
98
102
    void onValidityChanged(bool valid);
99
 
 
100
 
 
 
103
    void onMMSDServiceAdded(const QString&);
 
104
    void onMMSDServiceRemoved(const QString&);
 
105
    void onMMSAdded(const QString &, const QVariantMap&);
 
106
    void onMMSRemoved(const QString &);
 
107
    void onMMSPropertyChanged(QString property, QVariant value);
 
108
    void onCheckMMSServices();
 
109
    void onMessageRead(const QString &id);
101
110
private:
102
111
    bool isNetworkRegistered();
 
112
    void addMMStoService(const QString &path, const QVariantMap &properties, const QString &servicePath);
103
113
    QMap<uint, QString> mHandles;
104
114
 
105
115
    QMap<QString, oFonoTextChannel*> mTextChannels;
116
126
    Tp::SimplePresence mSelfPresence;
117
127
    Tp::SimplePresence mRequestedSelfPresence;
118
128
    QTimer *mRegisterTimer;
 
129
    MMSDManager *mMmsdManager;
 
130
    QMap<QString, MMSDService*> mMmsdServices;
 
131
    QMap<QString, QList<MMSDMessage*> > mServiceMMSList;
119
132
};
120
133
 
121
134
#endif