htiui/HtiServicePlugins/HtiMessagesServicePlugin/inc/HtiMsgSettingsHandler.h
branchRCL_3
changeset 18 48060abbbeaf
parent 17 d40e813b23c0
child 19 b3cee849fa46
equal deleted inserted replaced
17:d40e813b23c0 18:48060abbbeaf
     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:  HTI message settings handler.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CHTIMSGSETTINGSHANDLER_H
       
    20 #define CHTIMSGSETTINGSHANDLER_H
       
    21 
       
    22 
       
    23 // INCLUDES
       
    24 #include <HtiServicePluginInterface.h>
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // MACROS
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 // FUNCTION PROTOTYPES
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 
       
    36 // CLASS DECLARATION
       
    37 /**
       
    38 *  HTI Internet Access Point handler.
       
    39 */
       
    40 class CHtiMsgSettingsHandler : public CBase
       
    41     {
       
    42     public:
       
    43 
       
    44         /**
       
    45         * Character support settings values.
       
    46         */
       
    47         enum TCharSetSupport
       
    48             {
       
    49             ECharSetFull,
       
    50             ECharSetReduced,
       
    51             ECharSetFullLocked,
       
    52             ECharSetReducedLocked
       
    53             };
       
    54 
       
    55         /**
       
    56         * Two-phased constructor.
       
    57         */
       
    58         static CHtiMsgSettingsHandler* NewL();
       
    59 
       
    60         /**
       
    61         * Called when there is a message to be processed by this service.
       
    62         * @param aMessage message body destinated to the servive
       
    63         * @param aPriority message priority
       
    64         */
       
    65         void ProcessMessageL( const TDesC8& aMessage,
       
    66                               THtiMessagePriority aPriority );
       
    67 
       
    68         /**
       
    69         * Destructor.
       
    70         */
       
    71         virtual ~CHtiMsgSettingsHandler();
       
    72 
       
    73         /**
       
    74         * Sets the dispatcher to send outgoing messages to.
       
    75         * @param aDispatcher pointer to dispatcher instance
       
    76         */
       
    77         void SetDispatcher( MHtiDispatcher* aDispatcher );
       
    78 
       
    79     private:
       
    80 
       
    81         /**
       
    82         * C++ default constructor.
       
    83         */
       
    84         CHtiMsgSettingsHandler();
       
    85 
       
    86         /**
       
    87         * 2nd phase constructor.
       
    88         */
       
    89         void ConstructL();
       
    90 
       
    91     private: // helpers
       
    92 
       
    93         void HandleSetDefaultSmsCenterL( const TDesC8& aData );
       
    94         void HandleDeleteSmsCenterL( const TDesC8& aData );
       
    95         void HandleSetSmsSettingsL( const TDesC8& aData );
       
    96 
       
    97         void HandleSetMmsSettingsL( const TDesC8& aData );
       
    98 
       
    99         TInt GetAccessPointUIDL( const TDesC& aApName );
       
   100         void SendOkMsgL( const TDesC8& aData );
       
   101         void SendErrorMessageL( TInt aError, const TDesC8& aDescription );
       
   102 
       
   103     private:  // Data
       
   104 
       
   105         // Pointer to the dispatcher (referenced)
       
   106         MHtiDispatcher* iDispatcher; // referenced
       
   107     };
       
   108 
       
   109 
       
   110 #endif // CHTIMSGSETTINGSHANDLER_H