diff options
author | 2016-08-05 19:42:52 +0200 | |
---|---|---|
committer | 2016-08-05 19:42:52 +0200 | |
commit | 0a468d9b5ae7b3e5ba106facf17698d89b1ce200 (patch) | |
tree | 4b4b2a336802816522ef7bafd8d49cb6d6a6e67f /interfaces/include | |
parent | 3478f65b39560b333ba189e7d86e2c2cebfc9c7a (diff) |
Using the Tizen application manager to receive information about installed apps and to launch apps.v0.2.0
This acts as a template for other app framework adoptions.
Using the weston ivi shell to control surfaces.
Using the input event manager to dispatch hard key inputs.
This is a bigger update, so I increased the version number from 0.1.1 to 0.2.0.
Some parts are under development.
I created the components "WindowsManager" and "InputEventManager" because they are not defined in AGL right now.
As soon as they are defined, we should switch to them.
Find more information on the official wiki page:
https://wiki.automotivelinux.org/homescreen
Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
Diffstat (limited to 'interfaces/include')
-rw-r--r-- | interfaces/include/appframework.hpp | 54 | ||||
-rw-r--r-- | interfaces/include/daynightmode.hpp | 29 | ||||
-rw-r--r-- | interfaces/include/homescreen.hpp | 23 | ||||
-rw-r--r-- | interfaces/include/inputevent.hpp | 29 | ||||
-rw-r--r-- | interfaces/include/popup.hpp | 31 | ||||
-rw-r--r-- | interfaces/include/statusbar.hpp | 22 |
6 files changed, 188 insertions, 0 deletions
diff --git a/interfaces/include/appframework.hpp b/interfaces/include/appframework.hpp new file mode 100644 index 0000000..d95cd9d --- /dev/null +++ b/interfaces/include/appframework.hpp @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef APPFRAMEWORK_HPP +#define APPFRAMEWORK_HPP + +#include <QObject> +#include <QtDBus> +#include <QString> + +class AppInfo : public QObject +{ + Q_OBJECT +public: + explicit AppInfo(QObject *parent = 0); + AppInfo(const AppInfo &other); + AppInfo& operator=(const AppInfo &other); + ~AppInfo(); + + //register Message with the Qt type system + static void registerMetaType(); + + friend QDBusArgument &operator<<(QDBusArgument &argument, const AppInfo &appInfo); + friend const QDBusArgument &operator>>(const QDBusArgument &argument, AppInfo &appInfo); + + void setName(const QString name) {this->name = name;} + QString getName() const {return name;} + void setIconPath(const QString iconPath) {this->iconPath = iconPath;} + QString getIconPath() const {return iconPath;} + void setDescription(const QString description) {this->description = description;} + QString getDescription() const {return description;} + +private: + QString name; + QString iconPath; + QString description; +}; + +Q_DECLARE_METATYPE(AppInfo) + +#endif // APPFRAMEWORK_HPP diff --git a/interfaces/include/daynightmode.hpp b/interfaces/include/daynightmode.hpp new file mode 100644 index 0000000..4081212 --- /dev/null +++ b/interfaces/include/daynightmode.hpp @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef DAYNIGHTMODE_H +#define DAYNIGHTMODE_H + +namespace SystemDayNight { + typedef enum DayNightMode + { + DAYNIGHTMODE_UNDEFINED = -1, + DAYNIGHTMODE_DAY = 0, + DAYNIGHTMODE_NIGHT = 1 + } eDayNightMode; +} + +#endif // DAYNIGHTMODE_H diff --git a/interfaces/include/homescreen.hpp b/interfaces/include/homescreen.hpp new file mode 100644 index 0000000..bef3695 --- /dev/null +++ b/interfaces/include/homescreen.hpp @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef HOMESCREEN_H +#define HOMESCREEN_H + +#include "inputevent.hpp" + +#endif // HOMESCREEN_H + diff --git a/interfaces/include/inputevent.hpp b/interfaces/include/inputevent.hpp new file mode 100644 index 0000000..28418f6 --- /dev/null +++ b/interfaces/include/inputevent.hpp @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef INPUTEVENT_H +#define INPUTEVENT_H + +namespace InputEvent { + typedef enum HardKey + { + HARDKEY_UNDEFINED, + HARDKEY_NAV + } eHardKey; +} + +#endif // INPUTEVENT_H + diff --git a/interfaces/include/popup.hpp b/interfaces/include/popup.hpp new file mode 100644 index 0000000..1b92333 --- /dev/null +++ b/interfaces/include/popup.hpp @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef POPUP_H +#define POPUP_H + +namespace SystemPopup { + typedef enum PopupType + { + POPUPTYPE_UNDEFINED, + POPUPTYPE_INFO, + POPUPTYPE_WARNING, + POPUPTYPE_ERROR + } ePopupType; +} + +#endif // POPUP_H + diff --git a/interfaces/include/statusbar.hpp b/interfaces/include/statusbar.hpp new file mode 100644 index 0000000..d7fcc0c --- /dev/null +++ b/interfaces/include/statusbar.hpp @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef STATUSBAR_H +#define STATUSBAR_H + + + +#endif // STATUSBAR_H |