POI: AGL LifeCycle Management
[apps/agl-service-windowmanager.git] / client / communication.h
1 /*
2  * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
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 COMMUNICATION_H
18 #define COMMUNICATION_H
19
20 #include <QObject>
21
22 class communication : public QObject
23 {
24     Q_OBJECT
25
26     Q_PROPERTY(unsigned int width WRITE setWidth READ getWidth NOTIFY widthChanged)
27     Q_PROPERTY(unsigned int height WRITE setHeight READ getHeight NOTIFY heightChanged)
28     Q_PROPERTY(QString color READ getColor WRITE setColor NOTIFY colorChanged)
29     Q_PROPERTY(QString appName READ getAppName WRITE setAppName NOTIFY appNameChanged)
30     Q_PROPERTY(bool quit READ getQuit WRITE setQuit NOTIFY quitChanged)
31
32 public:
33     explicit communication(QObject *parent = 0);
34     virtual ~communication();
35
36 public slots:
37     void setWidth(const unsigned int &);
38     void setHeight(const unsigned int &);
39     void setColor(const QString&);
40     void setAppName(const QString&);
41     void setQuit(const bool&);
42
43     unsigned int getWidth() const;
44     unsigned int getHeight() const;
45     QString getColor() const;
46     QString getAppName() const;
47     bool getQuit() const;
48
49 signals:
50     void widthChanged();
51     void heightChanged();
52     void colorChanged();
53     void appNameChanged();
54     void quitChanged();
55
56 private:
57     unsigned int width;
58     unsigned int height;
59     QString color;
60     QString appName;
61     bool quit;
62 };
63
64 #endif // COMMUNICATION_H