12f425ea9a6879b67faedfe5ebb8f70c0a270d41
[staging/HomeScreen.git] / interfaces / src / windowmanager.cpp
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 #include "include/windowmanager.hpp"
18
19 SimplePoint::SimplePoint()
20 {
21 }
22
23 SimplePoint::~SimplePoint()
24 {
25 }
26
27
28 SimpleRect::SimpleRect()
29 {
30 }
31
32 SimpleRect::~SimpleRect()
33 {
34 }
35
36 QDBusArgument &operator <<(QDBusArgument &argument, const SimplePoint &mSimplePoint)
37 {
38         argument.beginStructure();
39         argument << mSimplePoint.x;
40         argument << mSimplePoint.y;
41         argument.endStructure();
42
43         return argument;
44 }
45
46 const QDBusArgument &operator >>(const QDBusArgument &argument, SimplePoint &mSimplePoint)
47 {
48         argument.beginStructure();
49     argument >> mSimplePoint.x;
50     argument >> mSimplePoint.y;
51         argument.endStructure();
52         return argument;
53 }
54
55 QDBusArgument &operator <<(QDBusArgument &argument, const SimpleRect &mSimpleRect)
56 {
57         argument.beginStructure();
58         argument << mSimpleRect.x;
59         argument << mSimpleRect.y;
60         argument << mSimpleRect.width;
61         argument << mSimpleRect.height;
62         argument.endStructure();
63
64         return argument;
65 }
66
67 const QDBusArgument &operator >>(const QDBusArgument &argument, SimpleRect &mSimpleRect)
68 {
69         argument.beginStructure();
70     argument >> mSimpleRect.x;
71     argument >> mSimpleRect.y;
72     argument >> mSimpleRect.width;
73     argument >> mSimpleRect.height;
74         argument.endStructure();
75         return argument;
76 }
77