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

« back to all changes in this revision

Viewing changes to src/mimabstractserverlogic.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo, Sergio Schvezov, Ricardo Salveti de Araujo
  • Date: 2013-07-23 19:47:04 UTC
  • mfrom: (1.1.2) (1.2.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130723194704-1lsy1kmlda069cea
Tags: 0.99.0+git20130615+97e8335-0ubuntu1
[ Sergio Schvezov ]
* New build from HEAD 97e8335.
* Packaging import from lp:phablet-extras/maliit-framework.

[ Ricardo Salveti de Araujo ]
* debian/control: adding vcs and fixing dependencies
* General package cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* * This file is part of Maliit framework *
2
 
 *
3
 
 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4
 
 * All rights reserved.
5
 
 *
6
 
 * Contact: maliit-discuss@lists.maliit.org
7
 
 *
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
12
 
 * of this file.
13
 
 */
14
 
 
15
 
#ifndef MIMSERVERLOGIC_H
16
 
#define MIMSERVERLOGIC_H
17
 
 
18
 
#include <QObject>
19
 
#include <QRegion>
20
 
#include <QSharedPointer>
21
 
 
22
 
#include <tr1/functional>
23
 
 
24
 
//! Walks over widget hierarchy, if used with
25
 
//! visitWidgetHierarchy. Return true if children of
26
 
//! current widget shall be visited, too.
27
 
typedef std::tr1::function<bool (QWidget *)> WidgetVisitor;
28
 
 
29
 
void visitWidgetHierarchy(WidgetVisitor visitor, QWidget *widget);
30
 
 
31
 
namespace Maliit {
32
 
namespace Server {
33
 
    class AbstractSurfaceGroupFactory;
34
 
}
35
 
}
36
 
 
37
 
class MImAbstractServerLogic : public QObject
38
 
{
39
 
    Q_OBJECT
40
 
 
41
 
public:
42
 
    explicit MImAbstractServerLogic(QObject *parent = 0);
43
 
    virtual ~MImAbstractServerLogic() = 0;
44
 
 
45
 
    //! Return factory for creating surface groups
46
 
    virtual QSharedPointer<Maliit::Server::AbstractSurfaceGroupFactory> surfaceGroupFactory() const = 0;
47
 
 
48
 
public Q_SLOTS:
49
 
    virtual void inputPassthrough(const QRegion &region) = 0;
50
 
    virtual void appOrientationAboutToChange(int toAngle) = 0;
51
 
    virtual void appOrientationChangeFinished(int toAngle) = 0;
52
 
    virtual void applicationFocusChanged(WId remoteWinId) = 0;
53
 
    virtual void pluginLoaded() = 0;
54
 
 
55
 
Q_SIGNALS:
56
 
    void applicationWindowGone();
57
 
};
58
 
 
59
 
#endif // MIMSERVERLOGIC_H