dependencies/gsprofilesrv_plat-profiles_engine_api/inc/MProfileChangeObserver.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:  Abstract interface for handling the active profile events.
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 __MPROFILECHANGEOBSERVER_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 __MPROFILECHANGEOBSERVER_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
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    26
// DATA TYPES
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    27
enum TProfileEvent
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    28
    {
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    29
    EProfileNewActiveProfile = 0,
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    30
    EProfileActiveProfileModified,
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    31
    EProfileUnknownEvent = 0xFFFFFFFF
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
// CLASS DECLARATION
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    35
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    36
/**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    37
*  Abstract interface for handling the active profile events.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    38
*  User derives his class from this and implements HandleActiveProfileEventL().
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    39
*
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    40
*  @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
    41
*  @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
    42
*/
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    43
class MProfileChangeObserver
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    44
    {
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    45
    public: // New functions
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
        /**
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    48
        * This is a callback function which is called when a active profile event
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    49
        * completes. User must derive his class from MProfileChangeObserver
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    50
        * and implement this method if he is to use notify services.
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    51
        * @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
    52
        * @param aProfileEvent Profile event
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    53
        * @param aProfileId 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
    54
        */
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    55
        virtual void HandleActiveProfileEventL(
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    56
            TProfileEvent aProfileEvent, TInt aProfileId ) = 0;
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    57
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    58
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
d017f79b1bb1 updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff changeset
    61
#endif      // __MPROFILECHANGEOBSERVER_H
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
// End of File