summaryrefslogtreecommitdiffstats
path: root/app/calltype.h
diff options
context:
space:
mode:
authorMatt Porter <mporter@konsulko.com>2018-05-21 11:54:33 -0400
committerMatt Porter <mporter@konsulko.com>2018-05-22 11:34:53 +0000
commit14b2f421da514a3d8584f7983884a9027ac06cbb (patch)
treed813469bfcbb353c4d3ba919804c9cbef41bbc8b /app/calltype.h
parent87c3378a8b716b896ca0cb72ccfb2e13f748058a (diff)
phone: add tabbed view
Adds support for a tabbed view of contacts, recent call, and the dialpad. This adjusts the UI to look more like a modern mobile phone app. The same models populate the contacts view and the recent call view as before with the latter being a more useful full screen list. The recent call history also includes type of call information (missed, incoming, outgoing) and the UI displays icons accordingly to indicate type of call that occured as well as a time stamp. For now, the icons are placeholders but will be replaced by icons design to match the AGL look and feel. Bug-AGL: SPEC-1435 Change-Id: I521155a11208e92ece83f20f7f3dd643deb92099 Signed-off-by: Matt Porter <mporter@konsulko.com>
Diffstat (limited to 'app/calltype.h')
-rw-r--r--app/calltype.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/app/calltype.h b/app/calltype.h
new file mode 100644
index 0000000..03eb152
--- /dev/null
+++ b/app/calltype.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2018 Konsulko Group
+ *
+ * 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.
+ */
+
+#include <QObject>
+
+class CallType
+{
+ Q_GADGET
+ public:
+ enum Value {
+ Missed,
+ Outgoing,
+ Incoming,
+ };
+ Q_ENUM(Value)
+
+ private:
+ CallType();
+};