/usr/include/telepathy-qt4/TelepathyQt/_gen/cli-properties.h is in libtelepathy-qt4-dev 0.9.3-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 | /*
* This file contains D-Bus client proxy classes generated by qt-client-gen.py.
*
* This file can be distributed under the same terms as the specification from
* which it was generated.
*/
#ifndef IN_TP_QT_HEADER
#error IN_TP_QT_HEADER
#endif
#include <TelepathyQt/Types>
#include <QtGlobal>
#include <QString>
#include <QObject>
#include <QVariant>
#include <QDBusPendingReply>
#include <TelepathyQt/AbstractInterface>
#include <TelepathyQt/DBusProxy>
#include <TelepathyQt/Global>
namespace Tp
{
class PendingVariant;
class PendingOperation;
}
namespace Tp
{
namespace Client
{
/**
* \class PropertiesInterfaceInterface
* \headerfile TelepathyQt/properties.h <TelepathyQt/Properties>
* \ingroup clientprops
*
* Proxy class providing a 1:1 mapping of the D-Bus interface "org.freedesktop.Telepathy.Properties".
*/
class TP_QT_EXPORT PropertiesInterfaceInterface : public Tp::AbstractInterface
{
Q_OBJECT
public:
/**
* Returns the name of the interface "org.freedesktop.Telepathy.Properties", which this class
* represents.
*
* \return The D-Bus interface name.
*/
static inline QLatin1String staticInterfaceName()
{
return QLatin1String("org.freedesktop.Telepathy.Properties");
}
/**
* Creates a PropertiesInterfaceInterface associated with the given object on the session bus.
*
* \param busName Name of the service the object is on.
* \param objectPath Path to the object on the service.
* \param parent Passed to the parent class constructor.
*/
PropertiesInterfaceInterface(
const QString& busName,
const QString& objectPath,
QObject* parent = 0
);
/**
* Creates a PropertiesInterfaceInterface associated with the given object on the given bus.
*
* \param connection The bus via which the object can be reached.
* \param busName Name of the service the object is on.
* \param objectPath Path to the object on the service.
* \param parent Passed to the parent class constructor.
*/
PropertiesInterfaceInterface(
const QDBusConnection& connection,
const QString& busName,
const QString& objectPath,
QObject* parent = 0
);
/**
* Creates a PropertiesInterfaceInterface associated with the same object as the given proxy.
*
* \param proxy The proxy to use. It will also be the QObject::parent()
* for this object.
*/
PropertiesInterfaceInterface(Tp::DBusProxy *proxy);
/**
* Creates a PropertiesInterfaceInterface associated with the same object as the given proxy.
* Additionally, the created proxy will have the same parent as the given
* proxy.
*
* \param mainInterface The proxy to use.
*/
explicit PropertiesInterfaceInterface(const Tp::AbstractInterface& mainInterface);
/**
* Creates a PropertiesInterfaceInterface associated with the same object as the given proxy.
* However, a different parent object can be specified.
*
* \param mainInterface The proxy to use.
* \param parent Passed to the parent class constructor.
*/
PropertiesInterfaceInterface(const Tp::AbstractInterface& mainInterface, QObject* parent);
/**
* Request all of the DBus properties on the interface.
*
* \return A pending variant map which will emit finished when the properties have
* been retrieved.
*/
Tp::PendingVariantMap *requestAllProperties() const
{
return internalRequestAllProperties();
}
public Q_SLOTS:
/**
* Begins a call to the D-Bus method \c GetProperties on the remote object.
*
* Returns an array of (identifier, value) pairs containing the current
* values of the given properties.
*
* Note that \a timeout is ignored as of now. It will be used once
* http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
*
*
* \param properties
*
* An array of property identifiers
* \param timeout The timeout in milliseconds.
*
* \return
*
* \htmlonly
* <p>An array of structs containing:</p>
* <ul>
* <li>integer identifiers</li>
* <li>variant boxed values</li>
* </ul>
* \endhtmlonly
*/
inline QDBusPendingReply<Tp::PropertyValueList> GetProperties(const Tp::UIntList& properties, int timeout = -1)
{
if (!invalidationReason().isEmpty()) {
return QDBusPendingReply<Tp::PropertyValueList>(QDBusMessage::createError(
invalidationReason(),
invalidationMessage()
));
}
QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
this->staticInterfaceName(), QLatin1String("GetProperties"));
callMessage << QVariant::fromValue(properties);
return this->connection().asyncCall(callMessage, timeout);
}
/**
* Begins a call to the D-Bus method \c ListProperties on the remote object.
*
* Returns a dictionary of the properties available on this channel.
*
* Note that \a timeout is ignored as of now. It will be used once
* http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
*
* \param timeout The timeout in milliseconds.
*
* \return
*
* An array of structs containing: an integer identifier a string
* property name a string representing the D-Bus signature of this
* property a bitwise OR of the flags applicable to this property
*/
inline QDBusPendingReply<Tp::PropertySpecList> ListProperties(int timeout = -1)
{
if (!invalidationReason().isEmpty()) {
return QDBusPendingReply<Tp::PropertySpecList>(QDBusMessage::createError(
invalidationReason(),
invalidationMessage()
));
}
QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
this->staticInterfaceName(), QLatin1String("ListProperties"));
return this->connection().asyncCall(callMessage, timeout);
}
/**
* Begins a call to the D-Bus method \c SetProperties on the remote object.
*
* \htmlonly
* <p>Takes an array of (identifier, value) pairs containing desired
* values to set the given properties. In the case of any errors, no
* properties will be changed. When the changes have been acknowledged
* by the server, the PropertiesChanged signal will be emitted.</p>
*
* <p>All properties given must have the PROPERTY_FLAG_WRITE flag, or
* PermissionDenied will be returned. If any variants are of the wrong
* type, NotAvailable will be returned. If any given property identifiers
* are invalid, InvalidArgument will be returned.</p>
* \endhtmlonly
*
* Note that \a timeout is ignored as of now. It will be used once
* http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
*
*
* \param properties
*
* An array mapping integer property identifiers to boxed values
* \param timeout The timeout in milliseconds.
*/
inline QDBusPendingReply<> SetProperties(const Tp::PropertyValueList& properties, int timeout = -1)
{
if (!invalidationReason().isEmpty()) {
return QDBusPendingReply<>(QDBusMessage::createError(
invalidationReason(),
invalidationMessage()
));
}
QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
this->staticInterfaceName(), QLatin1String("SetProperties"));
callMessage << QVariant::fromValue(properties);
return this->connection().asyncCall(callMessage, timeout);
}
Q_SIGNALS:
/**
* Represents the signal \c PropertiesChanged on the remote object.
*
* Emitted when the value of readable properties has changed.
*
* \param properties
*
* \htmlonly
* <p>An array of structs containing:</p>
* <ul>
* <li>integer identifiers</li>
* <li>variant boxed values</li>
* </ul>
* <p>The array should contain only properties whose values have
* actually changed.</p>
* \endhtmlonly
*/
void PropertiesChanged(const Tp::PropertyValueList& properties);
/**
* Represents the signal \c PropertyFlagsChanged on the remote object.
*
* Emitted when the flags of some room properties have changed.
*
* \param properties
*
* \htmlonly
* <p>An array of structs containing:</p>
* <ul>
* <li>integer identifiers</li>
* <li>a bitwise OR of the current flags</li>
* </ul>
* <p>The array should contain only properties whose flags have actually
* changed.</p>
* \endhtmlonly
*/
void PropertyFlagsChanged(const Tp::PropertyFlagsChangeList& properties);
protected:
virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
};
}
}
Q_DECLARE_METATYPE(Tp::Client::PropertiesInterfaceInterface*)
|