b587b7038c1588d415b1831833bd2714feae6ed3
[staging/HomeScreen.git] / interfaces / include / windowmanager.hpp
1 /*
2  * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef WINDOWMANAGER_H
18 #define WINDOWMANAGER_H
19
20 #include <QtDBus>
21
22 class SimplePoint
23 {
24 public:
25     SimplePoint();
26     virtual ~SimplePoint();
27
28         int x;
29         int y;
30
31     friend QDBusArgument &operator <<(QDBusArgument &argument, const SimplePoint &mSimplePoint);
32     friend const QDBusArgument &operator >>(const QDBusArgument &argument, SimplePoint &mSimplePoint);
33 };
34
35
36 class SimpleRect
37 {
38 public:
39     SimpleRect();
40     virtual ~SimpleRect();
41
42         int x;
43         int y;
44         int width;
45         int height;
46
47     friend QDBusArgument &operator <<(QDBusArgument &argument, const SimpleRect &mSimpleRect);
48     friend const QDBusArgument &operator >>(const QDBusArgument &argument, SimpleRect &mSimpleRect);
49 };
50
51
52 Q_DECLARE_METATYPE(SimplePoint)
53 Q_DECLARE_METATYPE(QList<SimplePoint>)
54
55 Q_DECLARE_METATYPE(SimpleRect)
56 Q_DECLARE_METATYPE(QList<SimpleRect>)
57
58
59 #endif // WINDOWMANAGER_H