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> 58 friend struct Private;
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());
133 void createAdaptor();
136 friend class Adaptee;
138 friend struct Private;
148 static BaseCallContentDTMFInterfacePtr
create() {
151 template<
typename BaseCallContentDTMFInterfaceSub
class>
154 new BaseCallContentDTMFInterfaceSubclass());
158 bool currentlySendingTones()
const;
159 void setCurrentlySendingTones(
bool sendingTones);
161 QString deferredTones()
const;
162 void setDeferredTones(
const QString &deferredTones);
175 void createAdaptor();
178 friend class Adaptee;
180 friend struct Private;
Definition: base-call.h:62
Base class for D-Bus services.
Definition: dbus-service.h:46
Base class for channel implementations.
Definition: base-channel.h:42
Callback1< void, DBusError * > StopToneCallback
Definition: base-call.h:167
LocalMuteState
Definition: build/TelepathyQt/_gen/constants.h:4626
static SharedPtr< BaseCallMuteInterfaceSubclass > create()
Definition: base-call.h:118
Callback2< void, const QString &, DBusError * > MultipleTonesCallback
Definition: base-call.h:169
static BaseCallContentPtr create(const QDBusConnection &dbusConnection, BaseChannel *channel, const QString &name, const Tp::MediaStreamType &type, const Tp::MediaStreamDirection &direction)
Definition: base-call.h:68
Callback2< void, uchar, DBusError * > StartToneCallback
Definition: base-call.h:165
Base class for implementations of Call.Interface.Mute.
Definition: base-call.h:108
Base class for D-Bus service interfaces.
Definition: dbus-service.h:73
MediaStreamType
Definition: build/TelepathyQt/_gen/constants.h:2716
Callback2< void, const Tp::LocalMuteState &, DBusError * > SetMuteStateCallback
Definition: base-call.h:127
The SharedPtr class is a pointer to an explicitly shared object.
Definition: shared-ptr.h:39
MediaStreamDirection
Definition: build/TelepathyQt/_gen/constants.h:2777
static SharedPtr< BaseCallContentDTMFInterfaceSubclass > create()
Definition: base-call.h:152
Base class for all the CallContent object interface implementations.
Definition: base-call.h:45
Base class for implementations of Call.Content.Interface.DTMF.
Definition: base-call.h:142
Definition: build/TelepathyQt/_gen/types.h:85
Small container class, containing a D-Bus error.
Definition: dbus-error.h:35
CallContentDisposition
Definition: build/TelepathyQt/_gen/constants.h:4241
static BaseCallMuteInterfacePtr create()
Definition: base-call.h:114
Definition: abstract-adaptor.cpp:31
Base class for all the Channel object interface implementations.
Definition: base-channel.h:97
static BaseCallContentDTMFInterfacePtr create()
Definition: base-call.h:148