inc/mcssathandler.h
author kashif.sayed
Fri, 26 Mar 2010 03:06:02 +0530
branchv5backport
changeset 30 f9f9f96b1873
permissions -rw-r--r--
user: kashif.sayed added contentcontrolsrv/.cproject added contentcontrolsrv/.project added contentcontrolsrv/group/ABLD.BAT added contentpublishingsrv/.cproject added contentpublishingsrv/.project added contentpublishingsrv/contentharvester/.cproject added contentpublishingsrv/contentharvester/.project added contentpublishingsrv/contentharvester/contentharvesterclient/group/ABLD.BAT added contentpublishingsrv/contentharvester/contentharvesterserver/group/ABLD.BAT added contentpublishingsrv/contentharvester/contentharvesterswiplugin/group/ABLD.BAT added contentpublishingsrv/contentharvester/factorysettingsplugin/group/ABLD.BAT added contentpublishingsrv/contentharvester/group/ABLD.BAT added contentpublishingsrv/group/ABLD.BAT added dependencies/S3libs/cpswrapper.lib added dependencies/S3libs/hscontentcontrol.lib added dependencies/S3libs/hspswrapper.lib added group/ABLD.BAT added homescreenpluginsrv/group/ABLD.BAT added homescreensrv_plat/group/ABLD.BAT added idlefw/group/ABLD.BAT added inc/ccontentmap.h added inc/cpdebug.h added inc/cpglobals.h added inc/cpliwmap.h added inc/cpluginvalidator.h added inc/cpserverdef.h added inc/cpublisherregistrymap.h added inc/mcssathandler.h added menucontentsrv/group/ABLD.BAT added xcfw/group/ABLD.BAT changed dependencies/S3libs/bld.inf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
30
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     1
/*
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     2
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     3
* All rights reserved.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     4
* This component and the accompanying materials are made available
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     6
* which accompanies this distribution, and is available
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     8
*
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     9
* Initial Contributors:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    11
*
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    12
* Contributors:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    13
*
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    14
* Description:  The API supports attributes not present in MCS from SAT Api
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    15
*
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    16
*/
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    17
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    18
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    19
#ifndef __MCSSATHANDLER_H__
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    20
#define __MCSSATHANDLER_H__
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    21
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    22
#include <AknIconUtils.h>
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    23
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    24
#include <RSatSession.h>
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    25
#include <tsaticoninfo.h>
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    26
#ifdef SIM_ATK_SERVICE_API_V1 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    27
#include <rsatservice.h>// MCL 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    28
#else 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    29
#include <RSatIcon.h> // 5.0 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    30
#endif 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    31
/**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    32
 *  SAT Handler.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    33
 *  @lib mcssathandler.lib
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    34
 *  @since S60 v5.0
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    35
 */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    36
NONSHARABLE_CLASS( CMcsSatHandler ): public CBase
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    37
    {
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    38
public:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    39
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    40
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    41
    * Two-phased constructor. Leaves on failure.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    42
    * @return The constructed object.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    43
    */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    44
    IMPORT_C static CMcsSatHandler* NewL();
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    45
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    46
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    47
    * Destructor.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    48
    * @since S60 v5.0
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    49
    * @capability None.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    50
    * @throws None.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    51
    * @panic None.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    52
    */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    53
    virtual ~CMcsSatHandler();
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    54
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    55
    IMPORT_C CAknIcon* LoadIconL();
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    56
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    57
    IMPORT_C TInt GetName( TDes& aName );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    58
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    59
    IMPORT_C static TBool CheckVisibility() ;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    60
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    61
private:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    62
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    63
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    64
    * Constructor.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    65
    */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    66
    CMcsSatHandler();
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    67
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    68
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    69
    * 2nd phase constructor.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    70
    */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    71
    void ConstructL();
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    72
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    73
    /**
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    74
    * Gets best icon from aIconEF.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    75
    */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    76
    CFbsBitmap* GetBitmapL( const RIconEf& aIconEF );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    77
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    78
private:    // data
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    79
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    80
    RSatSession iSatSession;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    81
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    82
#ifdef SIM_ATK_SERVICE_API_V1
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    83
    RSatService iSatIcon;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    84
#else
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    85
    RSatIcon iSatIcon;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    86
#endif 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    87
    };
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    88
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    89
#endif // __MCSSATHANDLER_H__