htiui/HtiServicePlugins/HtiMessagesServicePlugin/inc/HtiMessagesServicePlugin.h
changeset 2 453d490c84a5
parent 1 753e33780645
child 3 6952856dc269
equal deleted inserted replaced
1:753e33780645 2:453d490c84a5
     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:  Implementation of ECOM plug-in service interface. Provides
       
    15 *                HtiMessagesServicePlugin service.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CHTIMESSAGESSERVICEPLUGIN_H
       
    21 #define CHTIMESSAGESSERVICEPLUGIN_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <HtiServicePluginInterface.h>
       
    25 #include "../../../symbian_version.hrh"
       
    26 
       
    27 // CONSTANTS
       
    28 const TInt KHtiMessagesServiceUidValue = 0x10210CCF; // ECOM Implementation UID
       
    29 const TUid KHtiMessagesServiceUid = {KHtiMessagesServiceUidValue};
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class CMessageMgmntHandler;
       
    33 class CHtiIAPHandler;
       
    34 class CHtiMailboxHandler;
       
    35 class CHtiMsgSettingsHandler;
       
    36 #if ( SYMBIAN_VERSION_SUPPORT < SYMBIAN_4 )
       
    37 class CHtiNotificationHandler;
       
    38 #endif
       
    39 
       
    40 // CLASS DECLARATION
       
    41 
       
    42 /**
       
    43 * Implementation of ECOM plug-in service interface.
       
    44 */
       
    45 class CHtiMessagesServicePlugin : public CHTIServicePluginInterface
       
    46     {
       
    47 public:
       
    48 
       
    49     enum TCommand
       
    50         {
       
    51         // MessagesMgmntHandler
       
    52         EAddSms              = 0x01,
       
    53         EAddMms              = 0x02,
       
    54         EAddEmail            = 0x03,
       
    55         EAddIrMsg            = 0x04,
       
    56         EAddBtMsg            = 0x05,
       
    57         EAddSmartMsg         = 0x06,
       
    58         EAddAudioMsg         = 0x07,
       
    59         EDeleteMessage       = 0x10,
       
    60         EDeleteFolderContent = 0x11,
       
    61 
       
    62         // MailboxHandler
       
    63         ECreateMailBox       = 0x20,
       
    64         EDeleteMailBox       = 0x21,
       
    65 
       
    66         // IAPHandler
       
    67         ECreateIAP           = 0x30,
       
    68         EDeleteIAP           = 0x31,
       
    69         ECreateDestination   = 0x32,
       
    70         EDeleteDestination   = 0x33,
       
    71         EAddToDestination    = 0x34,
       
    72         ERemoveFromDestination = 0x35,
       
    73         ESetDefaultConnection = 0x36,
       
    74 
       
    75         // MgsSettingsHandler
       
    76         ESetDefaultSmsCenter = 0x40,
       
    77         EDeleteSmsCenter     = 0x41,
       
    78         ESetSmsSettings      = 0x42,
       
    79         ESetMmsSettings      = 0x45,
       
    80 
       
    81 #if ( SYMBIAN_VERSION_SUPPORT < SYMBIAN_4 )
       
    82         // NotificationHandler
       
    83         ECreateVoiceMessageNotification = 0x50,
       
    84         EClearAllNotifications          = 0x51,
       
    85 #endif
       
    86         
       
    87         // only for response message
       
    88         EResultOk            = 0xFF,
       
    89         };
       
    90 
       
    91     static CHtiMessagesServicePlugin* NewL();
       
    92 
       
    93     // Interface implementation
       
    94     void ProcessMessageL( const TDesC8& aMessage,
       
    95         THtiMessagePriority aPriority );
       
    96 
       
    97 protected:
       
    98 
       
    99     CHtiMessagesServicePlugin();
       
   100     void ConstructL();
       
   101 
       
   102     virtual ~CHtiMessagesServicePlugin();
       
   103 
       
   104 private:
       
   105 
       
   106     CMessageMgmntHandler*   iMessageHandler;
       
   107     CHtiIAPHandler*         iIAPHandler;
       
   108     CHtiMailboxHandler*     iMailboxHandler;
       
   109     CHtiMsgSettingsHandler* iMsgSettingsHandler;
       
   110 #if ( SYMBIAN_VERSION_SUPPORT < SYMBIAN_4 )
       
   111     CHtiNotificationHandler* iNotificationHandler;
       
   112 #endif
       
   113     };
       
   114 
       
   115 #endif // CHTIMESSAGESSERVICEPLUGIN_H
       
   116