commsconfig/cscengine/inc/cscengdestinationshandler.h
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2007-2007 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:  For handling interactions betweed UI and CMM.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CSCENGDESTINATIONSHANDLER_H
       
    20 #define C_CSCENGDESTINATIONSHANDLER_H
       
    21 
       
    22 #include <cmmanagerext.h>
       
    23 
       
    24 /**
       
    25  * An instance of CCSCEngDestinationsHandler
       
    26  * For handling interactions betweed UI and CMM.
       
    27  *
       
    28  * @lib cscengine.lib
       
    29  * @since Series 60 3.2
       
    30  */
       
    31 NONSHARABLE_CLASS( CCSCEngDestinationsHandler ) : public CBase
       
    32     {    
       
    33     public:
       
    34         
       
    35         /**
       
    36          * Two-phased constructor.
       
    37          */ 
       
    38         IMPORT_C static CCSCEngDestinationsHandler* NewL();
       
    39 
       
    40 
       
    41         /**
       
    42          * Destructor.
       
    43          */
       
    44         IMPORT_C virtual ~CCSCEngDestinationsHandler();
       
    45 
       
    46         
       
    47         /**
       
    48          * Returns available destination ids in the device.
       
    49          *
       
    50          * @since S60 v3.2
       
    51          * @param aSnapIds for destination ids
       
    52          */
       
    53         IMPORT_C void AvailableSnapIdsL( RArray<TUint32>& aSnapIds );          
       
    54     
       
    55         
       
    56         /**
       
    57          * Returns destination name based on destination id.
       
    58          *
       
    59          * @since S60 v3.2
       
    60          * @param aSnapId for destination id 
       
    61          * @return HBufC pointer to destination name, 
       
    62          *          ownership is transferred to caller
       
    63          */
       
    64         IMPORT_C HBufC* SnapNameL( TUint32 aSnapId );
       
    65         
       
    66         
       
    67         /**
       
    68          * Returns ETrue if snap is in use.
       
    69          *
       
    70          * @since S60 v3.2
       
    71          * @param aSnapId for destination id 
       
    72          * @return ETrue when snap is in use
       
    73          */
       
    74         IMPORT_C TBool IsSnapInUseL( TUint32 aSnapId );
       
    75      
       
    76     private:
       
    77 
       
    78         CCSCEngDestinationsHandler();
       
    79 
       
    80         void ConstructL();
       
    81               
       
    82     private:  // data
       
    83         
       
    84         /**
       
    85          * Handle to Connection Method Manager.
       
    86          * Own.
       
    87          */
       
    88         RCmManagerExt iCmManager;
       
    89         
       
    90     };
       
    91 
       
    92 #endif // C_CSCENGDESTINATIONSHANDLER_H