mobilemessaging/smsui/viewerinc/MsgSmsViewerCDMAAppUi.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002 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 *      Sms Viewer
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MSGSMSVIEWERCDMAAPPUI_H
       
    22 #define MSGSMSVIEWERCDMAAPPUI_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <msgeditorappui.h>             // CMsgEditorAppUi
       
    26 #include <msgbiocontrolobserver.h>
       
    27 #include <RPbkViewResourceFile.h>
       
    28 #include <PhCltTypes.h>                 // PhCltTypes
       
    29 #include "msgsmsviewerpan.h"            // panic-codes
       
    30 
       
    31 #include <bldvariant.hrh>
       
    32 
       
    33 
       
    34 
       
    35 // CLASS DECLARATION
       
    36 
       
    37 /**
       
    38 *  CMsgSmsViewerCDMAAppUi
       
    39 *  Inherited from CMsgEditorAppUi
       
    40 */
       
    41 class CMsgSmsViewerCDMAAppUi : public CMsgSmsViewerAppUi
       
    42     {
       
    43     public: 
       
    44         enum  TSMSViewerFieldLength
       
    45 			{
       
    46             ESMSViewerCallbackNumberLength = 256,
       
    47             ESMSViewerEmailAddressLength = 60
       
    48 			};  
       
    49         // Constructors and destructor
       
    50         
       
    51         /**
       
    52         * C++ default constructor.
       
    53         */
       
    54         CMsgSmsViewerCDMAAppUi();
       
    55 
       
    56         /**
       
    57         * Destructor.
       
    58         */
       
    59         virtual ~CMsgSmsViewerCDMAAppUi();
       
    60 
       
    61     private:
       
    62 
       
    63          /**
       
    64         * From MMsgEditorLauncher 
       
    65         */
       
    66         void LaunchViewL();
       
    67 
       
    68         /**
       
    69         * Separate the SmsBasedMsgHandlingL from LaunchViewL to have own function for Sms based msg handling. 
       
    70         * @param BioType of the TMsvEntry in question
       
    71         * @param aStore current message entry's msg store
       
    72         */
       
    73         void SmsBasedMsgHandlingL( TInt32 aBioType, CMsvStore* aStore );
       
    74         
       
    75         /**
       
    76         * From CCoeAppUi 
       
    77         * @param aKeyEvent look from CCoeAppUi
       
    78         * @param aType look from CCoeAppUi
       
    79         * @return TKeyResponse look from CCoeAppUi
       
    80         */
       
    81         TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
       
    82 
       
    83         /**
       
    84         * The non-bio dynamic handling of opening options-menu
       
    85         * @param aMenuPane pointer to CEikMenuPane
       
    86         */
       
    87         void DynInitNonBioOptionsMenuL( CEikMenuPane* aMenuPane );
       
    88 
       
    89         /**
       
    90         * The non-bio dynamic handling of opening context-menu
       
    91         * @param aMenuPane pointer to CEikMenuPane
       
    92         */
       
    93         void DynInitNonBioContextMenuL( CEikMenuPane* aMenuPane );
       
    94  
       
    95 		/**
       
    96         * From CEikAppUi 
       
    97         * @param aCommand look from CEikAppUi
       
    98         */
       
    99         void HandleCommandL(TInt aCommand);
       
   100 
       
   101         /**
       
   102         * From MEikMenuObserver 
       
   103         * @param aMenuId look from MEikMenuObserver
       
   104         * @param aMenuPane look from MEikMenuObserver
       
   105         */
       
   106         void DynInitMenuPaneL(TInt aMenuId, CEikMenuPane* aMenuPane);
       
   107 
       
   108         /**
       
   109         * By default Symbian OS constructor is private.
       
   110         */
       
   111         void ConstructL();
       
   112 
       
   113          /**
       
   114         * Handles SEND-key
       
   115         */       
       
   116         void DoHandleSendKeyL();
       
   117 
       
   118         /**
       
   119         * Set the state of automatic highlighting
       
   120         * @param aSwitchON, ETrue if automatic highlighting is to used, otherwise EFalse
       
   121         */
       
   122         void SetAutomaticHighlightL( const TBool aSwitchON );
       
   123 
       
   124          /**
       
   125         * Extract all the calling information from message
       
   126         */       
       
   127         void ExtractCallingInfoL();
       
   128 
       
   129     private:
       
   130         TBuf< ESMSViewerEmailAddressLength > iEmailAddress;   // Sender' email address
       
   131         TBuf< ESMSViewerCallbackNumberLength >    iCallbackNumber;  // Callback number
       
   132         TBool                               iEmailFeatureSupported;
       
   133         TBool                               iValidCallbackNumber;
       
   134         TBool                               iValidEmailAddress;
       
   135         TBool                               iIsFromEmail;
       
   136     };
       
   137 
       
   138 #endif // MSGSMSVIEWERAPPUICDMA_H
       
   139 
       
   140 //  End of File