phonebookui/cnthistorymodel/cnthistorymodelconsts.h
changeset 81 640d30f4fb64
parent 53 e6aff7b69165
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phonebookui/cnthistorymodel/cnthistorymodelconsts.h	Fri Oct 15 12:24:46 2010 +0300
@@ -0,0 +1,53 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+#ifndef CNTHISTORYMODELCONSTS_H
+#define CNTHISTORYMODELCONSTS_H
+
+enum Attributes
+    {
+    CntIncoming = 1,
+    CntUnseen = 2,
+    CntAttachment = 4
+    };
+
+enum ItemType
+    {
+    CntCallLog = 32,
+    CntMessage = 64
+    };
+
+enum Icon
+    {
+    CntMissedCall = 128,
+    CntReceivedCall = 256,
+    CntDialledCall = 512
+    };
+
+enum CustomRoles
+    {
+    CntFlagsRole = Qt::UserRole + 1,
+    CntPhoneNumberRole,
+    CntConverstaionIdRole
+    };
+
+// Constants
+#define MISSED_CALL_ICON "qtg_small_missed_call"
+#define DAILED_CALL_ICON "qtg_small_sent"
+#define RECEIVED_CALL_ICON "qtg_small_received"
+#define MESSAGE_ICON "qtg_small_message"
+
+#endif