gsprofilesrv_plat/profiles_engine_api/inc/MProfileChangeObserver.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:52:52 +0200
changeset 0 8c5d936e5675
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Abstract interface for handling the active profile events.
*
*/



#ifndef __MPROFILECHANGEOBSERVER_H
#define __MPROFILECHANGEOBSERVER_H

// INCLUDES
#include <e32std.h>

// DATA TYPES
enum TProfileEvent
    {
    EProfileNewActiveProfile = 0,
    EProfileActiveProfileModified,
    EProfileUnknownEvent = 0xFFFFFFFF
    };

// CLASS DECLARATION

/**
*  Abstract interface for handling the active profile events.
*  User derives his class from this and implements HandleActiveProfileEventL().
*
*  @lib N/A
*  @since 2.0
*/
class MProfileChangeObserver
    {
    public: // New functions

        /**
        * This is a callback function which is called when a active profile event
        * completes. User must derive his class from MProfileChangeObserver
        * and implement this method if he is to use notify services.
        * @since 2.0
        * @param aProfileEvent Profile event
        * @param aProfileId Active profile id
        */
        virtual void HandleActiveProfileEventL(
            TProfileEvent aProfileEvent, TInt aProfileId ) = 0;


    };

#endif      // __MPROFILECHANGEOBSERVER_H

// End of File