dependencies/gsprofilesrv_plat-profiles_engine_api/inc/MProfileEngine.h
author Christian Morlok <symbian.org@christianmorlok.de>
Thu, 06 May 2010 15:56:48 +0200
branchv5backport
changeset 67 35a198a504a8
parent 58 d017f79b1bb1
permissions -rw-r--r--
updated dependencies; everything (hssrv and hs) compiles with winscw_udeb without error
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
58
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     1
/*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     2
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     3
* All rights reserved.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     4
* This component and the accompanying materials are made available
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     6
* which accompanies this distribution, and is available
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     8
*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
     9
* Initial Contributors:
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    11
*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    12
* Contributors:
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    13
*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    14
* Description:  Profile Engine interface.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    15
*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    16
*/
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    17
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    18
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    19
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    20
#ifndef __MPROFILEENGINE_H__
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    21
#define __MPROFILEENGINE_H__
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    22
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    23
// INCLUDES
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    24
#include <e32std.h>
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    25
#include <Profile.hrh>          // TProfileRingingVolume 
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    26
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    27
// DATA TYPES
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    28
enum TProfileFeatureId
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    29
    {
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    30
    EProfileFeatureVTRingingTone,
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    31
    EProfileFeatureWmaDemoPlay  // if this is true, demo-play is DISABLED
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    32
    };
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    33
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    34
// FUNCTION PROTOTYPES
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    35
class MProfileEngine;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    36
class RFs;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    37
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    38
/**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    39
* Create profile engine, ownership transfered.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    40
*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    41
*  @lib ProfileEng.lib
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    42
*  @since 2.0
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    43
*/
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    44
IMPORT_C MProfileEngine* CreateProfileEngineL();
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    45
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    46
/**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    47
* Create profile engine, ownership transfered.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    48
*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    49
*  @param aFs An open file server session, ownership is NOT transferred.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    50
*  aFs must remain connected for the lifetime of the returned object.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    51
*  @lib ProfileEng.lib
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    52
*  @since 3.0
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    53
*/
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    54
IMPORT_C MProfileEngine* CreateProfileEngineL( RFs* aFs );
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    55
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    56
// FORWARD DECLARATIONS
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    57
class MProfile;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    58
class MProfilesNamesArray;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    59
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    60
// CLASS DECLARATION
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    61
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    62
/**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    63
*  Profile engine interface.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    64
*  This class offers methods to get active profile, active profile ID,
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    65
*  profile names array and set active profile.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    66
*  How to use:
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    67
*  Create profile engine with CreateProfileEngineL();
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    68
*      MProfileEngine* profileEngine = CreateProfileEngineL();
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    69
*  Free resources with MProfileEngine::Release();
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    70
*      profileEngine->Release();
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    71
*  or if you release resources in destructor:
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    72
*      ( iProfileEngine )
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    73
*          {
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    74
*          iProfileEngine->Release();
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    75
*          }
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    76
*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    77
*  If you put this class to CleanupStack then use void CleanupReleasePushL()
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    78
*     CleanupReleasePushL( *profileEngine );
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    79
*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    80
*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    81
*  @lib N/A
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    82
*  @since 2.0
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    83
*/
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    84
class MProfileEngine
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    85
    {
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    86
    protected:  // Destructor
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    87
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    88
        virtual ~MProfileEngine() {};
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    89
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    90
    public:
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    91
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    92
        /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    93
        * Frees resources.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    94
        * @since 2.0
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    95
        */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    96
        virtual void Release() = 0;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    97
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    98
        /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    99
        * Return active profile, ownership transfered.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   100
        * @since 2.0
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   101
        * @return Instance of the MProfile
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   102
        */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   103
        virtual MProfile* ActiveProfileLC() = 0;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   104
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   105
        /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   106
        * Return active profile, ownership transfered.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   107
        * @since 2.0
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   108
        * @return Instance of the MProfile
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   109
        */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   110
        virtual MProfile* ActiveProfileL() = 0;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   111
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   112
        /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   113
        * Return active profile ID or system error code.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   114
        * @since 2.0
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   115
        * @return Active profile ID or system error code.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   116
        */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   117
        virtual TInt ActiveProfileId() = 0;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   118
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   119
        /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   120
        * Return profiles names array, ownership transfered.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   121
        * @since 2.0
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   122
        * @return Instance of the profiles names array
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   123
        */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   124
        virtual MProfilesNamesArray* ProfilesNamesArrayLC() = 0;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   125
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   126
        /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   127
        * Set active profile if ID is incorrect then leave with KErrNotFound.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   128
        * @since 2.0
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   129
        * @param aId Profile ID
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   130
        */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   131
        virtual void SetActiveProfileL( TInt aId ) = 0;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   132
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   133
        /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   134
         * Sets the temporary ringing volume of the current active profile to
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   135
         * the given value. Temporary means that if another profile is
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   136
         * activated and after that the original is reactivated the temporary
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   137
         * value will be lost. Leaves with KErrAccessDenied if the ringing
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   138
         * volume setting of the current profile is read-only.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   139
         * @since 2.6
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   140
         * @param aVolume the new value for the temporary ringing volume level.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   141
         */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   142
        virtual void SetTempRingingVolumeL( TProfileRingingVolume aVolume ) = 0;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   143
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   144
        /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   145
         * Gets the temporary ringing volume of the current active profile.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   146
         * Temporary means that if another profile is activated and after
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   147
         * that the original is reactivated the temporary value will be lost.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   148
         * @since 2.6
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   149
         * @return the temporary ringing volume level of the active profile.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   150
         */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   151
        virtual TProfileRingingVolume TempRingingVolumeL() const = 0;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   152
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   153
        /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   154
         * Sets the temporary media volume of the current active profile to
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   155
         * the given value. Temporary means that if another profile is
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   156
         * activated and after that the original is reactivated the temporary
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   157
         * value will be lost. Leaves with KErrAccessDenied if the media
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   158
         * volume setting of the current profile is read-only.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   159
         * @since 2.6
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   160
         * @param aVolume the new value for the temporary media volume level.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   161
         */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   162
        virtual void SetTempMediaVolumeL( TProfileRingingVolume aVolume ) = 0;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   163
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   164
        /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   165
         * Gets the temporary media volume of the current active profile.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   166
         * Temporary means that if another profile is activated and after
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   167
         * that the original is reactivated the temporary value will be lost.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   168
         * @since 2.6
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   169
         * @return the temporary media volume level of the active profile.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   170
         */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   171
        virtual TProfileRingingVolume TempMediaVolumeL() const = 0;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   172
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   173
        /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   174
         * Checks whether the given feature is supported by Profiles Engine.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   175
         * @since 2.8
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   176
         * @param aFeatureId the feature to be checked.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   177
         * @return ETrue if the given feature is supported, EFalse otherwise.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   178
         */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   179
        virtual TBool IsFeatureSupported(
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   180
            TProfileFeatureId aFeatureId ) const = 0;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   181
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   182
        /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   183
        * Checks if the current active profile is timed or not.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   184
        * @since 3.2
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   185
        * @return ETrue if the current active profile is timed, EFalse
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   186
        * otherwise.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   187
        */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   188
        virtual TBool IsActiveProfileTimedL() = 0;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   189
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   190
    };
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   191
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   192
#endif      //  __MPROFILEENGINE_H__
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   193
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
   194
// End of File