breakdeps/MCSSatHandler/mcssathandler.h
author William Roberts <williamr@symbian.org>
Thu, 18 Nov 2010 15:45:28 +0000
changeset 138 6028e81d48fd
parent 110 3aa4235c5e9b
permissions -rw-r--r--
Update stem_rom.oby and rom_content.csv to remove multimedia Also removed spurious Phonebook2_reg.rsc file which causes PhoneBook to appear in the matrix menu
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
109
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     1
/*
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     2
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     3
* All rights reserved.
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     4
* This component and the accompanying materials are made available
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     6
* which accompanies this distribution, and is available
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     8
*
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     9
* Initial Contributors:
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    11
*
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    12
* Contributors:
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    13
*
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    14
* Description:  The API supports attributes not present in MCS from SAT Api
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    15
*
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    16
*/
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    17
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    18
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    19
#ifndef __MCSSATHANDLER_H__
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    20
#define __MCSSATHANDLER_H__
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    21
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    22
#include <AknIconUtils.h>
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    23
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    24
#include <rsatsession.h>
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    25
#include <tsaticoninfo.h>
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    26
#ifdef SIM_ATK_SERVICE_API_V1 
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    27
#include <rsatservice.h>// MCL 
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    28
#else 
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    29
#include <RSatIcon.h> // 5.0 
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    30
#endif 
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    31
/**
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    32
 *  SAT Handler.
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    33
 *  @lib mcssathandler.lib
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    34
 *  @since S60 v5.0
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    35
 */
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    36
NONSHARABLE_CLASS( CMcsSatHandler ): public CBase
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    37
    {
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    38
public:
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    39
    
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    40
    /**
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    41
    * Two-phased constructor. Leaves on failure.
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    42
    * @return The constructed object.
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    43
    */
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    44
    IMPORT_C static CMcsSatHandler* NewL();
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    45
    
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    46
    /**
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    47
    * Destructor.
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    48
    * @since S60 v5.0
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    49
    * @capability None.
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    50
    * @throws None.
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    51
    * @panic None.
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    52
    */
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    53
    virtual ~CMcsSatHandler();
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    54
    
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    55
    IMPORT_C CAknIcon* LoadIconL();
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    56
    
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    57
    IMPORT_C TInt GetName( TDes& aName );
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    58
    
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    59
    IMPORT_C static TBool CheckVisibility() ;
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    60
    
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    61
private:
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    62
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    63
    /**
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    64
    * Constructor.
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    65
    */
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    66
    CMcsSatHandler();
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    67
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    68
    /**
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    69
    * 2nd phase constructor.
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    70
    */
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    71
    void ConstructL();
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    72
110
3aa4235c5e9b Remove dependency of MCS on SAT, one step close to removing ETEL: boots but still gives and empty folder.
Tom Pritchard <tomp@symbian.org>
parents: 109
diff changeset
    73
#if 0    
109
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    74
    /**
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    75
    * Gets best icon from aIconEF.
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    76
    */
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    77
    CFbsBitmap* GetBitmapL( const RIconEf& aIconEF );
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    78
    
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    79
private:    // data
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    80
    RSatSession iSatSession;
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    81
    
110
3aa4235c5e9b Remove dependency of MCS on SAT, one step close to removing ETEL: boots but still gives and empty folder.
Tom Pritchard <tomp@symbian.org>
parents: 109
diff changeset
    82
//#ifdef SIM_ATK_SERVICE_API_V1
109
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    83
    RSatService iSatIcon;
110
3aa4235c5e9b Remove dependency of MCS on SAT, one step close to removing ETEL: boots but still gives and empty folder.
Tom Pritchard <tomp@symbian.org>
parents: 109
diff changeset
    84
//#else
109
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    85
    RSatIcon iSatIcon;
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    86
#endif 
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    87
    };
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    88
fddd8ce1f29d Add a version of the MCS SAT Handler ready for stemming
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    89
#endif // __MCSSATHANDLER_H__