logsui/logsengine/inc/logsengdefs.h
changeset 24 0ba2181d7c28
child 25 76a2435edfd4
equal deleted inserted replaced
0:e686773b3f54 24:0ba2181d7c28
       
     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_call_duration";
       
    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 logsReceivedVoiceCallIconId[] = "qtg_large_received_voice_call";
       
    41 
       
    42 const char logsDialledVideoCallIconId[] = "qtg_large_video_dialled_call";
       
    43 const char logsMissedVideoCallIconId[] = "qtg_large_video_missed_call";
       
    44 const char logsReceivedVideoCallIconId[] = "qtg_large_video_received_call";
       
    45 
       
    46 const char logsDialledVoipCallIconId[] = "qtg_large_voip_dialled_call";
       
    47 const char logsMissedVoipCallIconId[] = "qtg_large_voip_missed_call";
       
    48 const char logsReceivedVoipCallIconId[] = "qtg_large_voip_received_call";
       
    49 
       
    50 
       
    51 // CONSTANT NUMBERS
       
    52 
       
    53 const int logsEventALS = 0x4;
       
    54 const int logsDeleteCountInit = -1;
       
    55 
       
    56 // MACROS
       
    57 #define DESC_TO_QSTRING( desc )\
       
    58     QString::fromUtf16( desc.Ptr(), desc.Length() );
       
    59 
       
    60 #define LOGSENG_PANIC() User::Invariant()
       
    61 
       
    62 #define LOGSENG_ASSERT( cond )\
       
    63 if ( !(cond) ) LOGSENG_PANIC;
       
    64 
       
    65 // DATA TYPES
       
    66 
       
    67 class LogsEventStrings 
       
    68     {
       
    69 public:
       
    70     QString iInDirection;        // incoming direction text
       
    71     QString iOutDirection;       // outgoing direction text
       
    72     QString iMissedDirection;    // missed direction text    
       
    73     QString iInDirectionAlt;     // Incoming alternate line
       
    74     QString iOutDirectionAlt;    // Outgoing alternate line
       
    75     QString iFetched;            // Fetched
       
    76     QString iUnKnownRemote;      // unknown remote text
       
    77     };
       
    78 
       
    79 #endif  // LOGSENGDEFS_H
       
    80            
       
    81 // End of File