~timo-jyrinki/ubuntu/trusty/maliit-framework/fix_qt52

« back to all changes in this revision

Viewing changes to src/mimapphostedserverlogic.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2013-07-23 19:47:04 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20130723194704-0o18p2ao0x9sa1zx
Tags: upstream-0.99.0+git20130615+97e8335
ImportĀ upstreamĀ versionĀ 0.99.0+git20130615+97e8335

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef MIMAPPHOSTEDSERVERLOGIC_H
2
 
#define MIMAPPHOSTEDSERVERLOGIC_H
3
 
 
4
 
#include "mimabstractserverlogic.h"
5
 
 
6
 
#include <QWidget>
7
 
 
8
 
namespace Maliit {
9
 
namespace Server {
10
 
    class WindowedSurfaceGroupFactory;
11
 
}
12
 
}
13
 
 
14
 
class MImAppHostedServerLogic : public MImAbstractServerLogic
15
 
{
16
 
    Q_OBJECT
17
 
public:
18
 
    explicit MImAppHostedServerLogic(QObject *parent = 0);
19
 
    virtual ~MImAppHostedServerLogic();
20
 
 
21
 
    //! reimpl
22
 
    virtual QSharedPointer<Maliit::Server::AbstractSurfaceGroupFactory> surfaceGroupFactory() const;
23
 
    //! reimpl_end
24
 
 
25
 
    virtual QWidget *pluginsProxyWidget() const;
26
 
 
27
 
public Q_SLOTS:
28
 
    //! reimpl
29
 
    virtual void inputPassthrough(const QRegion &region = QRegion());
30
 
    virtual void appOrientationAboutToChange(int toAngle);
31
 
    virtual void appOrientationChangeFinished(int toAngle);
32
 
    virtual void applicationFocusChanged(WId remoteWinId);
33
 
    virtual void pluginLoaded();
34
 
    //! reimpl_end
35
 
 
36
 
private:
37
 
    Q_SLOT void newSurfaceWidget(QWidget *widget, int surfaceOptions);
38
 
 
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;
46
 
};
47
 
 
48
 
#endif // MIMAPPHOSTEDSERVERLOGIC_H