2 * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef COMMUNICATION_H
18 #define COMMUNICATION_H
22 class communication : public QObject
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)
33 explicit communication(QObject *parent = 0);
34 virtual ~communication();
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&);
43 unsigned int getWidth() const;
44 unsigned int getHeight() const;
45 QString getColor() const;
46 QString getAppName() const;
53 void appNameChanged();
64 #endif // COMMUNICATION_H