inc/mcssathandler.h
branchv5backport
changeset 30 f9f9f96b1873
equal deleted inserted replaced
29:f9c0abe18432 30:f9f9f96b1873
       
     1 /*
       
     2 * Copyright (c) 2008 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:  The API supports attributes not present in MCS from SAT Api
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MCSSATHANDLER_H__
       
    20 #define __MCSSATHANDLER_H__
       
    21 
       
    22 #include <AknIconUtils.h>
       
    23 
       
    24 #include <RSatSession.h>
       
    25 #include <tsaticoninfo.h>
       
    26 #ifdef SIM_ATK_SERVICE_API_V1 
       
    27 #include <rsatservice.h>// MCL 
       
    28 #else 
       
    29 #include <RSatIcon.h> // 5.0 
       
    30 #endif 
       
    31 /**
       
    32  *  SAT Handler.
       
    33  *  @lib mcssathandler.lib
       
    34  *  @since S60 v5.0
       
    35  */
       
    36 NONSHARABLE_CLASS( CMcsSatHandler ): public CBase
       
    37     {
       
    38 public:
       
    39     
       
    40     /**
       
    41     * Two-phased constructor. Leaves on failure.
       
    42     * @return The constructed object.
       
    43     */
       
    44     IMPORT_C static CMcsSatHandler* NewL();
       
    45     
       
    46     /**
       
    47     * Destructor.
       
    48     * @since S60 v5.0
       
    49     * @capability None.
       
    50     * @throws None.
       
    51     * @panic None.
       
    52     */
       
    53     virtual ~CMcsSatHandler();
       
    54     
       
    55     IMPORT_C CAknIcon* LoadIconL();
       
    56     
       
    57     IMPORT_C TInt GetName( TDes& aName );
       
    58     
       
    59     IMPORT_C static TBool CheckVisibility() ;
       
    60     
       
    61 private:
       
    62 
       
    63     /**
       
    64     * Constructor.
       
    65     */
       
    66     CMcsSatHandler();
       
    67 
       
    68     /**
       
    69     * 2nd phase constructor.
       
    70     */
       
    71     void ConstructL();
       
    72 
       
    73     /**
       
    74     * Gets best icon from aIconEF.
       
    75     */
       
    76     CFbsBitmap* GetBitmapL( const RIconEf& aIconEF );
       
    77     
       
    78 private:    // data
       
    79     
       
    80     RSatSession iSatSession;
       
    81     
       
    82 #ifdef SIM_ATK_SERVICE_API_V1
       
    83     RSatService iSatIcon;
       
    84 #else
       
    85     RSatIcon iSatIcon;
       
    86 #endif 
       
    87     };
       
    88 
       
    89 #endif // __MCSSATHANDLER_H__