renamed dlls+exe to prevent conflicts with existing files in emulator; changelog attached.
* renamed dlls/exe:
- aifw.dll to aifw_hs.dll
- cputils to cputils_hs
- aiidleint.dll to aiidleint_hs.dll
- aiutils.dll to aiutils_hs.dll
- MenuInterface.dll to MenuInterface_hs.dll
- XCFW.dll to XCFW_hs.dll
- homescreen.exe to homescreen_hs.exe
- ailaunch.exe to ailaunch_hs.exe
* new UID for Active Idle (aifw_hs.dll, aiidleint_hs.dll and homescreen.exe):
#define AI_UID3_AIFW_COMMON 0xEDFF45C4 (was 0x102750F0 = 271012080)
* new UID for cputils_hs.dll: 0xE3E7134E (was 0x20016B7F = 536963967)
* new UID for AI Utilities Factory (aiutils_hs.dll): 0xEC55106C (was 0x10281865 = 271063141)
* new UID for MenuInterface_hs.dll: 0xEEE24485 (was 0x10210EAB = 270601899)
* new UID for XCFW_hs.dll: 0xEB12332F (was 0x10210EA0 = 270601888)
* new UID for ailaunch_hs.exe: 0xEF5A047A (was 0x200286E3 = 537036515)
/*
* Copyright (c) 2004-2006 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: This class handles registering and unregistering of
* DRM event observers to DRM notifier, and sending
* DRM notifications to other registered observers.
*
*/
#ifndef CDRMNOTIFIER_H
#define CDRMNOTIFIER_H
// INCLUDES
#include <e32base.h>
#include <DRMEventObserver.h>
#include <DRMEvent.h>
// CONSTANTS
// MACROS
// DATA TYPES
// FUNCTION PROTOTYPES
// FORWARD DECLARATIONS
class CDRMEventHandler;
// CLASS DECLARATION
/**
* With this class an application can register to receive DRM related
* notifications.
*
* @lib DRMCommon.dll
* @since S60Rel2.6
*/
class CDRMNotifier : public CBase
{
public: // Constructors and destructor
/**
* Two-phased constructor.
*/
IMPORT_C static CDRMNotifier* NewL( void );
/**
* Two-phased constructor.
*/
IMPORT_C static CDRMNotifier* NewLC( void );
/**
* Destructor.
*/
IMPORT_C virtual ~CDRMNotifier();
public: // New functions
/**
* RegisterEventObserverL
*
* Registers a new event observer to DRM Notifier. Listens to all events
* of the given type
*
* @since S60Rel2.6
* @param aObserver Observer.
* @param aEvent the type of event to listen to
* @return none, leaves with Symbian OS error code if an error occurs
*/
IMPORT_C void RegisterEventObserverL( MDRMEventObserver& aObserver ,
const TDRMEventType& aEvent);
/**
* UnRegisterEventObserverL
*
* Unregisters existing event observer from DRM Notifier.
*
* @since S60Rel2.6
* @param aObserver Observer.
* @param aEvent the type of event to unregister
* @return none, leaves with Symbian OS error code if an error occurs
*/
IMPORT_C void UnRegisterEventObserverL( MDRMEventObserver& aObserver,
const TDRMEventType& aEvent);
/**
* RegisterEventObserverL
*
* Registers a new event observer to DRM Notifier. Only recieves
* notification when the rights accociated with the given content id
* are handled
*
* @since S60Rel2.6
* @param aObserver Observer
* @param aEvent the type of event to listen to
* @param aContentID the specific content id to listen to
* @return none, leaves with Symbian OS error code if an error occurs
*/
IMPORT_C void RegisterEventObserverL( MDRMEventObserver& aObserver ,
const TDRMEventType& aEvent,
const TDesC8& aContentID);
/**
* UnRegisterEventObserverL
*
* Unregisters existing event observer from DRM Notifier.
*
* @since S60Rel2.6
* @param aObserver Observer.
* @param aEvent the type of event to listen to
* @param aContentID the specific content id to listen to
* @return none, leaves with Symbian OS error code if an error occurs
*/
IMPORT_C void UnRegisterEventObserverL( MDRMEventObserver& aObserver,
const TDRMEventType& aEvent,
const TDesC8& aContentID);
/**
* SendEventL
*
* Sends a notification to registered observers
*
* @since S60Rel2.6
* @param aEvent the event to be sent
* @param aStatus the request status for the event, will be updated when
* the event has been sent
* @return none
*/
IMPORT_C void SendEventL( MDRMEvent& aEvent, TRequestStatus& aStatus );
private:
/**
* C++ default constructor.
*/
CDRMNotifier( void );
/**
* First Phase constructor
*/
void ConstructL();
// Prohibit copy constructor if not deriving from CBase.
CDRMNotifier( const CDRMNotifier& );
// Prohibit assigment operator if not deriving from CBase.
CDRMNotifier& operator=( const CDRMNotifier& );
private: // Data
// Event handler.
CDRMEventHandler* iEventHandler;
};
#endif // CDRMNOTIFIER_H
// End of File