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

« back to all changes in this revision

Viewing changes to src/maliit/plugins/abstractsurfacefactory.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) 2012 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 MALIIT_PLUGINS_ABSTRACTSURFACEFACTORY_H
16
 
#define MALIIT_PLUGINS_ABSTRACTSURFACEFACTORY_H
17
 
 
18
 
#include <maliit/plugins/abstractsurface.h>
19
 
 
20
 
class QSize;
21
 
 
22
 
namespace Maliit {
23
 
namespace Plugins {
24
 
 
25
 
/*! \ingroup pluginapi
26
 
 * \brief The AbstractSurfaceFactory class is used to create AbstractSurface instances
27
 
 */
28
 
class AbstractSurfaceFactory : public QObject
29
 
{
30
 
    Q_OBJECT
31
 
public:
32
 
    AbstractSurfaceFactory();
33
 
    /*!
34
 
     * \brief ~AbstractSurfaceFactory
35
 
     */
36
 
    virtual ~AbstractSurfaceFactory();
37
 
 
38
 
    /*!
39
 
     * \brief returns the available screen size in current screen orientation
40
 
     * \return the size in current screen orientation
41
 
     */
42
 
    virtual QSize screenSize() const = 0;
43
 
 
44
 
    /*!
45
 
     * \brief returns if a surface with options can be created
46
 
     * \param options the options the surface should have
47
 
     * \return true if such a surface can be created
48
 
     */
49
 
    virtual bool supported(AbstractSurface::Options options) const = 0;
50
 
 
51
 
    /*!
52
 
     * \brief creates a new AbstractSurface instance with options and parent
53
 
     * \param options the options the surface should have
54
 
     * \param parent the parent of the new surface
55
 
     * \return a new AbstractSurface
56
 
     */
57
 
    virtual QSharedPointer<AbstractSurface> create(AbstractSurface::Options options,
58
 
                                                   const QSharedPointer<AbstractSurface> &parent = QSharedPointer<AbstractSurface>()) = 0;
59
 
 
60
 
Q_SIGNALS:
61
 
    /*!
62
 
     * \brief signaled when the screen size changed
63
 
     * \param newSize the new screen size
64
 
     */
65
 
    void screenSizeChanged(const QSize &newSize);
66
 
};
67
 
 
68
 
} // namespace Plugins
69
 
} // namespace Maliit
70
 
 
71
 
#endif // MALIIT_PLUGINS_ABSTRACTSURFACEFACTORY_H