23 #ifndef _TelepathyQt_base_call_h_HEADER_GUARD_
24 #define _TelepathyQt_base_call_h_HEADER_GUARD_
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
31 #include <TelepathyQt/DBusService>
32 #include <TelepathyQt/Global>
33 #include <TelepathyQt/Types>
34 #include <TelepathyQt/Callbacks>
35 #include <TelepathyQt/Constants>
36 #include <TelepathyQt/BaseChannel>
38 #include <QDBusConnection>
68 static BaseCallContentPtr
create(
const QDBusConnection &dbusConnection,
73 return BaseCallContentPtr(
new BaseCallContent(dbusConnection, channel, name, type, direction));
77 QVariantMap immutableProperties()
const;
78 bool registerObject(
DBusError *error = NULL);
79 virtual QString uniqueName()
const;
81 QList<AbstractCallContentInterfacePtr> interfaces()
const;
82 AbstractCallContentInterfacePtr interface(
const QString &interfaceName)
const;
83 bool plugInterface(
const AbstractCallContentInterfacePtr &interface);
96 virtual bool registerObject(
const QString &busName,
const QString &objectPath,
102 friend class Adaptee;
104 friend struct Private;
114 static BaseCallMuteInterfacePtr
create() {
117 template<
typename BaseCallMuteInterfaceSub
class>
120 new BaseCallMuteInterfaceSubclass());
124 QVariantMap immutableProperties()
const;
135 void createAdaptor();
138 friend class Adaptee;
140 friend struct Private;
150 static BaseCallContentDTMFInterfacePtr
create() {
153 template<
typename BaseCallContentDTMFInterfaceSub
class>
156 new BaseCallContentDTMFInterfaceSubclass());
160 QVariantMap immutableProperties()
const;
162 bool currentlySendingTones()
const;
163 void setCurrentlySendingTones(
bool sendingTones);
165 QString deferredTones()
const;
166 void setDeferredTones(
const QString &deferredTones);
179 void createAdaptor();
182 friend class Adaptee;
184 friend struct Private;
MediaStreamType
Definition: build/TelepathyQt/_gen/constants.h:2716
Base class for D-Bus service interfaces.
Definition: dbus-service.h:73
static BaseCallContentDTMFInterfacePtr create()
Definition: base-call.h:150
Base class for all the Channel object interface implementations.
Definition: base-channel.h:95
static BaseCallContentPtr create(const QDBusConnection &dbusConnection, BaseChannel *channel, const QString &name, const Tp::MediaStreamType &type, const Tp::MediaStreamDirection &direction)
Definition: base-call.h:68
Base class for implementations of Call.Interface.Mute.
Definition: base-call.h:108
Callback2< void, const QString &, DBusError * > MultipleTonesCallback
Definition: base-call.h:173
LocalMuteState
Definition: build/TelepathyQt/_gen/constants.h:4626
Base class for D-Bus services.
Definition: dbus-service.h:46
The SharedPtr class is a pointer to an explicitly shared object.
Definition: shared-ptr.h:39
static SharedPtr< BaseCallMuteInterfaceSubclass > create()
Definition: base-call.h:118
Base class for all the CallContent object interface implementations.
Definition: base-call.h:45
Callback1< void, DBusError * > StopToneCallback
Definition: base-call.h:171
Base class for implementations of Call.Content.Interface.DTMF.
Definition: base-call.h:144
Definition: build/TelepathyQt/_gen/types.h:81
Small container class, containing a D-Bus error.
Definition: dbus-error.h:35
MediaStreamDirection
Definition: build/TelepathyQt/_gen/constants.h:2777
static BaseCallMuteInterfacePtr create()
Definition: base-call.h:114
Callback2< void, const Tp::LocalMuteState &, DBusError * > SetMuteStateCallback
Definition: base-call.h:129
Definition: base-call.h:62
CallContentDisposition
Definition: build/TelepathyQt/_gen/constants.h:4241
Base class for channel implementations.
Definition: base-channel.h:42
static SharedPtr< BaseCallContentDTMFInterfaceSubclass > create()
Definition: base-call.h:154
Callback2< void, uchar, DBusError * > StartToneCallback
Definition: base-call.h:169