mmsharing/livecommsui/lcui/inc/lcuidefs.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
     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 #ifndef LCUIDEFS_H_
       
    18 #define LCUIDEFS_H_
       
    19 
       
    20 #include <QObject>
       
    21 
       
    22 class LcUtil {
       
    23 
       
    24 public:
       
    25     
       
    26     inline static void asyncSlotCall( QObject* instance, const char* slot )
       
    27         {
       
    28         QMetaObject::invokeMethod(instance, slot, Qt::QueuedConnection );
       
    29         }
       
    30     
       
    31     inline static void asyncSlotCall( QObject* instance, const char* slot, QGenericArgument arg )
       
    32         {
       
    33         QMetaObject::invokeMethod(instance, slot, Qt::QueuedConnection, arg );
       
    34         }
       
    35 };
       
    36 
       
    37 // Panic the current thread
       
    38 #if ( defined __WINSCW__ ) || ( defined __WINS__ ) || ( defined __ARMV5__ )
       
    39 #include <e32std.h>
       
    40 #define LC_PANIC() User::Invariant()
       
    41 #else
       
    42 #define LC_PANIC()
       
    43 #endif
       
    44 
       
    45 #define LC_MCC_WINDOW_FACTOR 50
       
    46 
       
    47 #define LC_NOTE_ON_TOP 20
       
    48 
       
    49 #define LC_NOTE_TIMEOUT 3000
       
    50 
       
    51 #define DESC_TO_QSTRING( desc )\
       
    52     QString::fromRawData( reinterpret_cast<const QChar*>(desc.Ptr()), desc.Length());
       
    53 
       
    54 #define LC_INVITING "Inviting..."
       
    55 #define LC_WAITING_VIDEO "Waiting for shared video..."
       
    56 #define LC_OK "OK"
       
    57 #define LC_CANCEL "Cancel"
       
    58 #define LC_ACCEPT_SESSION "Accept incoming session from"
       
    59 #define LC_RECIPIENT_QUERY "Enter recipient address:"
       
    60 
       
    61 #ifndef QT_TESTLIB_LIB    
       
    62 const char lcIdleViewFile[] = ":/xml/lcidleview.docml";
       
    63 const char lcReceiveViewFile[] = ":/xml/lcreceiveview.docml";
       
    64 const char lcReceiveOnlyViewFile[] = ":/xml/lcreceiveonlyview.docml";
       
    65 const char lcSendViewFile[] = ":/xml/lcsendview.docml";
       
    66 const char lcTwowayViewFile[] = ":/xml/lctwowayview.docml";
       
    67 const char lcAllInOneViewFile[] = ":/xml/lcvtview.docml";
       
    68 #else
       
    69 const char lcIdleViewFile[] = "c:/lcidleview.docml";
       
    70 const char lcReceiveViewFile[] = "C:/lcreceiveview.docml";
       
    71 const char lcReceiveOnlyViewFile[] = "C:/lcreceiveonlyview.docml";
       
    72 const char lcSendViewFile[] = "C:/lcsendview.docml";
       
    73 const char lcTwowayViewFile[] = "C:/lctwowayview.docml";
       
    74 const char lcAllInOneViewFile[] = "C:/lcvtview.docml";
       
    75 
       
    76 #endif
       
    77 
       
    78 const char lcLcViewTypeName[] = "LcView";
       
    79 
       
    80 //view ids
       
    81 const char lcViewIdleId[] = "lc_view_idle";
       
    82 const char lcViewReceiveId[] = "lc_view_recv";
       
    83 const char lcViewReceiveOnlyId[] = "lc_view_recvonly";
       
    84 const char lcViewSendId[] = "lc_view_send";
       
    85 const char lcViewTwowayId[] = "lc_view_twoway";
       
    86 const char lcViewAllInOneId[] = "lc_view_allinone";
       
    87 
       
    88 //widget ids
       
    89 const char lcIconContactId[] = "lc_icon_contact";
       
    90 const char lcLabelRecipientId[] = "lc_label_recipient";
       
    91 const char lcLabelDurationId[] = "lc_label_duration";
       
    92 const char lcWidgetRecvVideoId[] = "lc_widget_recvvideo";
       
    93 const char lcWidgetSendVideoId[] = "lc_widget_sendvideo";
       
    94 const char lcWidgetRecvVideoId2[] = "lc_widget_recvvideo2";
       
    95 const char lcWidgetSendVideoId2[] = "lc_widget_sendvideo2";
       
    96 const char lcButtonEndCall[] = "lc_button_endCall";
       
    97 const char lcWidgetDialpad[] = "lc_label_dialpad";
       
    98 
       
    99 //action ids
       
   100 const char lcActFullscreenId[] = "lc_act_fullscreen";
       
   101 const char lcActVideopreferenceId[] = "lc_act_videopreference";
       
   102 const char lcActDialerId[] = "lc_act_dialer";
       
   103 const char lcActEndactivecallId[] = "lc_act_endactivecall";
       
   104 const char lcActStopSharingId[] = "lc_act_stopsharing";
       
   105 const char lcActEnableCameraId[] = "lc_act_enablecamera";
       
   106 const char lcActMuteId[] = "lc_act_mute";
       
   107 const char lcActGalleryId[] = "lc_act_gallery";
       
   108 const char lcActChangeCameraId[] = "lc_act_changecamera";
       
   109 const char lcActMenuChangeCameraId[] = "lc_act_menu_changecamera";
       
   110 const char lcActAdjustVideoId[] = "lc_act_adjustvideo";
       
   111 const char lcActShareImageId[] = "lc_act_shareimage";
       
   112 const char lcActSwapViewsId[] = "lc_act_swapviews";
       
   113 const char lcActSwitchToVoiceCallId[] = "lc_act_switchtovoicecall";
       
   114 const char lcActDisableCameraId[] = "lc_act_disablecamera";
       
   115 const char lcActMenuDisableCameraId[] = "lc_act_menu_disablecamera";
       
   116 const char lcActSpeakerId[] = "lc_act_speaker";
       
   117 const char lcActOpenKeypadId[] = "lc_act_openkeypad";
       
   118 
       
   119 
       
   120 //layouts ids
       
   121 const char lcLayoutLandscapeDefaultId[] = "landscape"; //Main window - received content
       
   122 const char lcLayoutFullscreenId[] = "fullscreen";
       
   123 const char lcLayoutLandscapeSwappedId[] = "lc_layout_landscape_swapped";//Main window - sent content
       
   124 const char lcLayoutLandscapeDialpadId[] = "lc_layout_landscape_dialpad"; // Dialpad layout
       
   125 
       
   126 
       
   127 //translations Id
       
   128 const char lcTranslationsDirectory[] = ":/translations";
       
   129 const char lcTranslationsFileNameDefault[] = "livecommsui_en_GB";
       
   130 const char lcTranslationsFileName[] = "livecommsui_";
       
   131 
       
   132 //icon names
       
   133 const char lcIconNameUnmuteMic[] = "qtg_mono_mic_unmute";
       
   134 const char lcIconNameMuteMic[] = "qtg_mono_mic_mute";
       
   135 const char lcIconNameHandset[] = "qtg_mono_mobile";
       
   136 const char lcIconNameLoudspeaker[] = "qtg_mono_speaker";
       
   137 const char lcIconNameMainCamera[] = "qtg_mono_change_cam_mode";
       
   138 const char lcIconNameSecondaryCamera[] = "qtg_mono_change_cam_mode";
       
   139 const char lcIconNameEnableCamera[] = "qtg_mono_camcorder";
       
   140 const char lcIconNameDisableCamera[] = "qtg_mono_camcorder_off";
       
   141 
       
   142 const char lcIconNameBlackWin[] = ":/black_win.bmp";
       
   143 
       
   144 
       
   145 //effects
       
   146 const char lcEffectWinAppear[] = ":/win_appear.fxml";
       
   147 const char lcEffectWinDisappear[] = ":/win_disappear.fxml";
       
   148 const char lcEffectWinFlip[] = ":/win_flip.fxml";
       
   149 const char lcEffectWinSwapDown[] = ":/win_swap_down.fxml";
       
   150 const char lcEffectWinSwapUp[] = ":/win_swap_up.fxml";
       
   151 
       
   152 const char lcEffectWinId[] = "vidwindow";
       
   153 const char lcEffectWinAppearId[] = "appear";
       
   154 const char lcEffectWinDisappearId[] = "disappear";
       
   155 const char lcEffectWinFlipId[] = "flip";
       
   156 const char lcEffectWinSwapDownId[] = "swapDown";
       
   157 const char lcEffectWinSwapUpId[] = "swapUp";
       
   158 
       
   159 const char lcEffectWinDefaultCallback[] = "windowDisappearComplete";
       
   160 
       
   161 #endif /* LCUIDEFS_H_ */