summaryrefslogtreecommitdiffstats
path: root/SampleAppTimeDate
diff options
context:
space:
mode:
authorBocklage, Jens <Jens_Bocklage@mentor.com>2016-07-06 19:35:45 +0200
committerBocklage, Jens <Jens_Bocklage@mentor.com>2016-07-06 19:35:45 +0200
commit3478f65b39560b333ba189e7d86e2c2cebfc9c7a (patch)
tree5a2432297d5a1879f3581e89940dbd8fe016cdc9 /SampleAppTimeDate
parent2513c5c6ed1c89ae3a0a6ae0263b9307d50046b2 (diff)
Support for color schemesv0.1.1
- 3 demo color schemes included Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
Diffstat (limited to 'SampleAppTimeDate')
-rw-r--r--SampleAppTimeDate/README.md10
-rw-r--r--SampleAppTimeDate/SampleAppTimeDate.pro39
-rw-r--r--SampleAppTimeDate/src/main.cpp6
3 files changed, 34 insertions, 21 deletions
diff --git a/SampleAppTimeDate/README.md b/SampleAppTimeDate/README.md
index 5016865..65459c7 100644
--- a/SampleAppTimeDate/README.md
+++ b/SampleAppTimeDate/README.md
@@ -1,9 +1,19 @@
AGL Sample Application for Home Screen Statusbar
This application simply shows the current time in the home screen status bar
+Build with QtCreator 3.0.1
+
AGL repo for source code:
https://gerrit.automotivelinux.org/gerrit/#/admin/projects/staging/HomeScreen
+AGL repo for bitbake recipe:
+https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/meta-agl-demo/recipes-demo-hmi/HomeScreen/HomeScreen_?.bb
+
+v0.1.1
+07/06/2015
+
+#changes
+- D-Bus interface calsses now linkes as static lib
v0.1.0
06/24/2016
diff --git a/SampleAppTimeDate/SampleAppTimeDate.pro b/SampleAppTimeDate/SampleAppTimeDate.pro
index 0fc8086..1ae61dd 100644
--- a/SampleAppTimeDate/SampleAppTimeDate.pro
+++ b/SampleAppTimeDate/SampleAppTimeDate.pro
@@ -1,8 +1,16 @@
-#-------------------------------------------------
+# Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH
#
-# Project created by QtCreator 2016-06-21T13:46:39
+# 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.
QT += core dbus
QT -= gui
@@ -16,30 +24,19 @@ TEMPLATE = app
SOURCES += src/main.cpp \
src/timedateprovider.cpp
-GENERATED_SOURCES += \
- $$OUT_PWD/statusbar_proxy.cpp #generated dbus proxy
HEADERS += \
- $$OUT_PWD/statusbar_proxy.h \ #generated dbus proxy
+ $$OUT_PWD/../interfaces/statusbar_proxy.h \ #generated dbus proxy
src/timedateprovider.h
+INCLUDEPATH += $$OUT_PWD/../interfaces
+
+LIBS += -L$$OUT_PWD/../interfaces -linterfaces
+
OTHER_FILES += \
- ../interfaces/statusbar.xml \
README.md
# remove generated files
QMAKE_CLEAN += -r \
- $$OUT_PWD/HomeScreen \
- $$OUT_PWD/Makefile \
- $$OUT_PWD/statusbar_proxy.h \
- $$OUT_PWD/statusbar_proxy.cpp \
- $$OUT_PWD/statusbar_proxy.moc
-
-# Create custom targets for generating dbus proxy
-# for statusbar
-statusbargenerateproxy.target = $$OUT_PWD/statusbar_proxy.cpp
-unix:statusbargenerateproxy.commands = "$(OE_QMAKE_PATH_EXTERNAL_HOST_BINS)qdbusxml2cpp -m -p statusbar_proxy $$_PRO_FILE_PWD_/../interfaces/statusbar.xml; $(OE_QMAKE_PATH_EXTERNAL_HOST_BINS)moc $$OUT_PWD/statusbar_proxy.h -o $$OUT_PWD/statusbar_proxy.moc"
-PRE_TARGETDEPS += \
- $$OUT_PWD/statusbar_proxy.cpp
-QMAKE_EXTRA_TARGETS += \
- statusbargenerateproxy
+ $$OUT_PWD/SampleAppTimeDate \
+ $$OUT_PWD/Makefile
diff --git a/SampleAppTimeDate/src/main.cpp b/SampleAppTimeDate/src/main.cpp
index d432cba..cc10b81 100644
--- a/SampleAppTimeDate/src/main.cpp
+++ b/SampleAppTimeDate/src/main.cpp
@@ -5,6 +5,12 @@ int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
+ // used for application settings (QSettings)
+ QCoreApplication::setOrganizationDomain("LinuxFoundation");
+ QCoreApplication::setOrganizationName("AutomotiveGradeLinux");
+ QCoreApplication::setApplicationName("SampleAppTimeDate");
+ QCoreApplication::setApplicationVersion("0.1.1");
+
TimeDateProvider *tdp = new TimeDateProvider();
tdp->start();