1
#ifndef MIMAPPHOSTEDSERVERLOGIC_H
2
#define MIMAPPHOSTEDSERVERLOGIC_H
4
#include "mimabstractserverlogic.h"
10
class WindowedSurfaceGroupFactory;
14
class MImAppHostedServerLogic : public MImAbstractServerLogic
18
explicit MImAppHostedServerLogic(QObject *parent = 0);
19
virtual ~MImAppHostedServerLogic();
22
virtual QSharedPointer<Maliit::Server::AbstractSurfaceGroupFactory> surfaceGroupFactory() const;
25
virtual QWidget *pluginsProxyWidget() const;
29
virtual void inputPassthrough(const QRegion ®ion = QRegion());
30
virtual void appOrientationAboutToChange(int toAngle);
31
virtual void appOrientationChangeFinished(int toAngle);
32
virtual void applicationFocusChanged(WId remoteWinId);
33
virtual void pluginLoaded();
37
Q_SLOT void newSurfaceWidget(QWidget *widget, int surfaceOptions);
39
/* Used as the default parent widget for the plugins proxy widget
40
* When the application reparents the plugins proxy widget into its widget hierachy
41
* this relationship gets broken.
42
* This lets destruction of the plugins proxy widget work in the same way for both cases. */
43
QWidget mDefaultParent;
44
QWidget *mPluginsWidget;
45
QSharedPointer<Maliit::Server::WindowedSurfaceGroupFactory> mSurfaceGroupFactory;
48
#endif // MIMAPPHOSTEDSERVERLOGIC_H