adaptationlayer/tsy/nokiatsy_dll/internal/test/nokiatsy_test_tool/core/inc/cmmmessagemanagerbase.h
changeset 4 510c70acdbf6
parent 3 1972d8c2e329
child 5 8ccc39f9d787
equal deleted inserted replaced
3:1972d8c2e329 4:510c70acdbf6
     1 /*
       
     2 * Copyright (c) 2002-2004 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 the License "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:   Forwards Tsy requests from Symbian OS to Domestic OS 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CMMMESSAGEMANAGERBASE_H
       
    21 #define CMMMESSAGEMANAGERBASE_H
       
    22 
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 // CONSTANTS
       
    28 	//none
       
    29 
       
    30 // MACROS
       
    31     //none
       
    32 
       
    33 // DATA TYPES
       
    34     //none
       
    35 
       
    36 // FUNCTION PROTOTYPES
       
    37     //none
       
    38 
       
    39 // FORWARD DECLARATIONS
       
    40 class TDataPackage;
       
    41 class CMmDataPackage;
       
    42 
       
    43 // CLASS DECLARATION
       
    44 /**
       
    45 *  Forwards Tsy requests from Symbian OS to Domestic OS
       
    46 *  
       
    47 *  @lib (unknown)
       
    48 *  @since 2.6
       
    49 */
       
    50 class CMmMessageManagerBase
       
    51         : public CBase
       
    52     {
       
    53 
       
    54     // public types
       
    55     public:
       
    56 
       
    57         //TTsyObjects
       
    58         enum TTsyObjects
       
    59             {
       
    60             EPhoneTsy,
       
    61             ELineTsy,
       
    62             ECallTsy,
       
    63             EFaxTsy,
       
    64             ESmsMessagingTsy,
       
    65             EBroadcastMessagingTsy,
       
    66             EUssdMessagingTsy,
       
    67             EPhoneStoreTsy,
       
    68             ESmsStoreTsy,
       
    69             ENamStoreTsy,
       
    70             EONStoreTsy,
       
    71             EENStoreTsy,
       
    72             EPhoneBookStoreTsy,
       
    73             EConferenceCallTsy,
       
    74             EPacketDataTsy,
       
    75             ESatTsy,
       
    76             ECustomTsy,
       
    77 			EDtmfTsy,
       
    78             ESecurityTsy,
       
    79             //ECustomExtTsy
       
    80             EMaxNumOfTsyObjects
       
    81             };
       
    82 
       
    83     // public methods
       
    84     public:
       
    85 
       
    86         /**
       
    87         * Destructor
       
    88         */
       
    89         virtual ~CMmMessageManagerBase( void );
       
    90 
       
    91         /**
       
    92         * Forwards a request to DOS layer, request doesn't contain data
       
    93         */
       
    94         virtual TInt HandleRequestL( 
       
    95                 const TInt aIpc ) = 0;
       
    96 
       
    97         /**
       
    98         * Forwards a request to DOS layer, request contains 
       
    99         * packaged data by Common TSY
       
   100         */
       
   101         virtual TInt HandleRequestL( 
       
   102                 const TInt aIpc,
       
   103                 const CMmDataPackage* aDataPackage ) = 0;
       
   104 
       
   105         /**
       
   106         * Forwards a request to DOS layer, request contains 
       
   107         * packaged data by Etel Server.
       
   108         */
       
   109         virtual TInt HandleRequestL(    
       
   110                 const TInt aIpc,
       
   111                 const TDataPackage* aDataPackage ) = 0;
       
   112 
       
   113 		/**
       
   114         * Completes a request or a notification with no data
       
   115         */
       
   116         virtual void Complete( TInt aIpc, TInt aResult ) = 0;
       
   117 
       
   118         /**
       
   119         * Completes a request or a notification with packaged data
       
   120         */
       
   121         virtual void Complete( TInt aIpc, CMmDataPackage* data, TInt aResult ) = 0;
       
   122 
       
   123         /**
       
   124         * Registers a Tsy object for request and notification completions
       
   125         */
       
   126         virtual void RegisterTsyObject( TTsyObjects aTsyObjectType, 
       
   127                                                  CBase* aTsyObject ) = 0;
       
   128                                                  
       
   129         /**
       
   130         * Deregisters a Tsy object from request and notification completions
       
   131         */
       
   132         virtual void DeregisterTsyObject(CBase* aTsyObject) = 0;
       
   133 
       
   134     // protected methods
       
   135     protected:
       
   136 
       
   137 	// private methods
       
   138     private:
       
   139 
       
   140     // public attributes
       
   141     public:
       
   142 
       
   143     // protected attributes
       
   144     protected:
       
   145 
       
   146     // private attributes
       
   147     private:
       
   148 
       
   149 
       
   150     };
       
   151 #endif // CMMMESSAGEMANAGERBASE_H
       
   152 
       
   153 //  End of file