~ubuntu-branches/ubuntu/trusty/maliit-framework/trusty-proposed

« back to all changes in this revision

Viewing changes to src/mimabstractserverlogic.h

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2013-01-31 13:26:48 UTC
  • Revision ID: package-import@ubuntu.com-20130131132648-w1u9d2279tppxcft
Tags: upstream-0.94.1
ImportĀ upstreamĀ versionĀ 0.94.1

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