logsui/logsengine/inc/logsengdefs.h
changeset 0 4a5361db8937
child 4 e52d42f9500c
equal deleted inserted replaced
-1:000000000000 0:4a5361db8937
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef LOGSENGDEFS_H
       
    19 #define LOGSENGDEFS_H
       
    20 
       
    21 #include <QString>
       
    22 
       
    23 
       
    24 // CONSTANT LITERALS
       
    25 const char logsEmergencyCall911[] = "911";   // Number in event considered to be emergency call 
       
    26 const char logsEmergencyCall[] = "112";      // Number in event considered to be emergency call (in CDMA 
       
    27                                         // KLogsDataFldTag_Emergency is used instead 
       
    28 //icons ids
       
    29 const char logsVoiceCallIconId[] = "qtg_large_voice_call";
       
    30 const char logsVideoCallIconId[] = "qtg_large_video_call";
       
    31 const char logsVoipCallIconId[] = "qtg_large_voip";
       
    32 
       
    33 const char logsRemotePartyInfoIconId[] = "qtg_large_info";
       
    34 const char logsCallDurationIconId[] = "qtg_large_callduration";
       
    35 const char logsCallDateAndTimeIconId[] = "qtg_large_calendar";
       
    36 const char logsThumbUnknownId[] = "qtg_large_avatar";
       
    37 
       
    38 const char logsDialledVoiceCallIconId[] = "qtg_large_dialled_voice_call";
       
    39 const char logsMissedVoiceCallIconId[] = "qtg_large_missed_voice_call";
       
    40 const char logsMissedVoiceCallUnseenIconId[] = "qtg_large_missed_voice_call_unseen";
       
    41 const char logsReceivedVoiceCallIconId[] = "qtg_large_received_voice_call";
       
    42 
       
    43 const char logsDialledVideoCallIconId[] = "qtg_large_video_dialled_call";
       
    44 const char logsMissedVideoCallIconId[] = "qtg_large_video_missed_call";
       
    45 const char logsMissedVideoCallUnseenIconId[] = "qtg_large_missed_video_call_unseen";
       
    46 const char logsReceivedVideoCallIconId[] = "qtg_large_video_received_call";
       
    47 
       
    48 const char logsDialledVoipCallIconId[] = "qtg_large_voip_dialled_call";
       
    49 const char logsMissedVoipCallIconId[] = "qtg_large_voip_missed_call";
       
    50 const char logsMissedVoipCallUnseenIconId[] = "qtg_large_missed_voip_call_unseen";
       
    51 const char logsReceivedVoipCallIconId[] = "qtg_large_voip_received_call";
       
    52 
       
    53 
       
    54 // CONSTANT NUMBERS
       
    55 
       
    56 const int logsEventALS = 0x4;
       
    57 const int logsDeleteCountInit = -1;
       
    58 
       
    59 const int logsReadSizeCompressEnabled = 20;
       
    60 const int logsReadSizeUndefined = -1;
       
    61 
       
    62 // MACROS
       
    63 #define DESC_TO_QSTRING( desc )\
       
    64     QString::fromUtf16( desc.Ptr(), desc.Length() );
       
    65 
       
    66 #define LOGSENG_PANIC() User::Invariant()
       
    67 
       
    68 #define LOGSENG_ASSERT( cond )\
       
    69 if ( !(cond) ) LOGSENG_PANIC;
       
    70 
       
    71 // DATA TYPES
       
    72 
       
    73 class LogsEventStrings 
       
    74     {
       
    75 public:
       
    76     QString iInDirection;        // incoming direction text
       
    77     QString iOutDirection;       // outgoing direction text
       
    78     QString iMissedDirection;    // missed direction text    
       
    79     QString iInDirectionAlt;     // Incoming alternate line
       
    80     QString iOutDirectionAlt;    // Outgoing alternate line
       
    81     QString iFetched;            // Fetched
       
    82     QString iUnKnownRemote;      // unknown remote text
       
    83     };
       
    84 
       
    85 #endif  // LOGSENGDEFS_H
       
    86            
       
    87 // End of File