telephonyserverplugins/common_tsy/commontsy/inc/mmtsy/ctsydelegates.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 /*
       
     2 * Copyright (c) 2006-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 
       
    18 
       
    19 
       
    20 #ifndef CTSYDELEGATES_H
       
    21 #define CTSYDELEGATES_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "cmmmessagemanagerbase.h"
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30  *  Class defining of TSY delegates. 
       
    31  */
       
    32 class CTsyDelegates : public CBase
       
    33     {
       
    34     public:
       
    35 
       
    36         /**
       
    37          * Destructor.
       
    38          */
       
    39         virtual ~CTsyDelegates();
       
    40 
       
    41         /**
       
    42          * Creates object instance.
       
    43          *          
       
    44          * 
       
    45          * @return pointer to tsydelegates object
       
    46          */
       
    47         static CTsyDelegates* NewL();
       
    48          
       
    49         /**
       
    50          * Register Tsy object into use
       
    51          *          
       
    52          *
       
    53          * @param aTsyObjects Tsy object to be registered
       
    54          * @param aTsyObject pointer to regitered Tsy object
       
    55          */
       
    56         void RegisterTsyObject( 
       
    57             CMmMessageManagerBase::TTsyObjects aTsyObjects,
       
    58             CBase* aTsyObject );
       
    59          
       
    60         /**
       
    61          * De registers Tsy object 
       
    62          *          
       
    63          * 
       
    64          * @param aTsyObject pointer to regitered Tsy object
       
    65          */
       
    66         void DeregisterTsyObject( CBase* aTsyObject );
       
    67          
       
    68         /**
       
    69          * Returns specified Tsy object
       
    70          *          
       
    71          *
       
    72          * @param aObject Tsy object type
       
    73          * @return pointer to requested Tsy object
       
    74          */ 
       
    75         CBase* GetTsyObject( CMmMessageManagerBase::TTsyObjects aObject );
       
    76          
       
    77     private:
       
    78     
       
    79         /**
       
    80          * C++ default constructor.
       
    81          */
       
    82         CTsyDelegates();
       
    83 
       
    84     private: // data
       
    85 
       
    86 		/** 
       
    87          * array with pointers to Tsy objects for completion
       
    88          */
       
    89         TFixedArray<CBase*, 
       
    90             CMmMessageManagerBase::EMaxNumOfTsyObjects> iTsyObjectArray;
       
    91 
       
    92     };
       
    93 
       
    94 #endif  // CTSYDELEGATES_H
       
    95 
       
    96 //  End of file