49 m_cdInterface =
new CdInterface(QLatin1String(
"org.freedesktop.ColorManager"),
50 QLatin1String(
"/org/freedesktop/ColorManager"),
51 QDBusConnection::systemBus(),
63 QDBusPendingReply<QList<QDBusObjectPath> > async =
m_cdInterface->GetDevices();
64 QDBusPendingCallWatcher *displayWatcher =
new QDBusPendingCallWatcher(async,
this);
65 connect(displayWatcher, SIGNAL(finished(QDBusPendingCallWatcher*)),
66 this, SLOT(
gotDevices(QDBusPendingCallWatcher*)));
70 QDBusServiceWatcher *watcher =
new QDBusServiceWatcher(
"org.freedesktop.ColorManager",
71 QDBusConnection::systemBus(),
72 QDBusServiceWatcher::WatchForOwnerChange,
253 Q_FOREACH (
const QDBusObjectPath &profileObjectPath, profiles) {
255 CdProfileInterface profile(QLatin1String(
"org.freedesktop.ColorManager"),
256 profileObjectPath.path(),
257 QDBusConnection::systemBus());
258 if (!profile.isValid()) {
265 p->
kind = profile.kind();
266 p->filename = profile.filename();
267 p->title = profile.title();
268 p->created = profile.created();
269 p->colorspace = profile.colorspace();