1
/* * This file is part of Maliit framework *
3
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
6
* Contact: maliit-discuss@lists.maliit.org
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License version 2.1 as published by the Free Software Foundation
11
* and appearing in the file LICENSE.LGPL included in the packaging
15
#ifndef GLIBDBUSIMSERVERPROXY_P_H
16
#define GLIBDBUSIMSERVERPROXY_P_H
19
#include <QSharedPointer>
20
#include <dbus/dbus-glib.h>
24
#include "inputcontextdbusaddress.h"
30
// std::tr1::shared_ptr allows to specify a deleter. Hiding it behind a typedef,
31
// as we do not really need all the shared pointer semantics here.
32
typedef std::tr1::shared_ptr<DBusGConnection> ConnectionRef;
36
class GlibDBusIMServerProxyPrivate
40
GlibDBusIMServerProxyPrivate(const QSharedPointer<Maliit::InputContext::DBus::Address> &address);
41
~GlibDBusIMServerProxyPrivate();
44
void resetNotify(DBusGProxy *proxy, DBusGProxyCall *callId);
47
DBusGProxy *glibObjectProxy;
48
Maliit::DBusGLib::ConnectionRef connection;
49
GObject *inputContextAdaptor;
51
QSet<DBusGProxyCall *> pendingResetCalls;
52
const QSharedPointer<Maliit::InputContext::DBus::Address> mAddress;
57
#endif // GLIBDBUSIMSERVERPROXY_P_H