Many of the components were not compilingm,because bld.inf had undefined flag #ifdef RD_CUSTOMIZABLE_AI. All the flags removed now. Components do not compile right away. E.g. many icons are missing and need to be copied from Symbian3. See example from MCSPlugin. Shortcut plugin does not need to be compiled as MCSPlugin replaces it.
/*
* Copyright (c) 2005-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: State alive
*
*/
#ifndef T_AISTATEALIVE_H
#define T_AISTATEALIVE_H
#include "aipluginstate.h"
#include "aipluginstatemachine.h"
/**
* @ingroup group_aifw
*
* Alive active state
*
* @lib aifw_hs
* @since S60 3.2
*/
NONSHARABLE_CLASS( TAiStateAliveActive ) : public MAiPluginState
{
public: // Constructor
TAiStateAliveActive();
public: // from MAiPluginState
void Enter( MAiPluginStateMachine& aStateMachine,
TAiStateChanges aStateChange );
TBool HandleEvent( MAiPluginStateMachine& aStateMachine,
TAiStateChanges aStateChange );
void Exit( MAiPluginStateMachine& aStateMachine,
TAiStateChanges aStateChange );
};
/**
* Alive inactive state
*
* @lib aifw_hs
* @since S60 3.2
*/
NONSHARABLE_CLASS( TAiStateAliveInactive ) : public MAiPluginState
{
public: // Constructor
TAiStateAliveInactive();
public: // from MAiPluginState
void Enter( MAiPluginStateMachine& aStateMachine,
TAiStateChanges aStateChange );
TBool HandleEvent( MAiPluginStateMachine& aStateMachine,
TAiStateChanges aStateChange );
void Exit( MAiPluginStateMachine& aStateMachine,
TAiStateChanges aStateChange );
};
/**
* Alive incall state
*
* @lib aifw_hs
* @since S60 3.2
*/
NONSHARABLE_CLASS( TAiStateAliveIncall ) : public MAiPluginState
{
public: // Constructor
TAiStateAliveIncall();
public: // from MAiPluginState
void Enter( MAiPluginStateMachine& aStateMachine,
TAiStateChanges aStateChange );
TBool HandleEvent( MAiPluginStateMachine& aStateMachine,
TAiStateChanges aStateChange );
void Exit( MAiPluginStateMachine& aStateMachine,
TAiStateChanges aStateChange );
};
/**
* Alive switch state
*
* @lib aifw_hs
* @since S60 3.2
*/
NONSHARABLE_CLASS( TAiStateAlive ) : public MAiPluginState,
public MAiPluginStateMachine
{
public: // Constructor
TAiStateAlive( MAiPluginStateMachine& aParentStateMachine );
public: // from MAiPluginStateMachine
TBool StateVariable( TAiStateVariable aStateVariable );
TAiTransitionReason TranslateReason( TAiStateChanges aStateChange );
void RestartSuspendTimer();
void SwitchToState( TAiState aState, TAiStateChanges aStateChange );
CAiContentPublisher& Plugin() const;
void ChangePluginState( TAiTransitionReason aReason,
void (CAiContentPublisher::*aStateChangeMethod)(TAiTransitionReason) );
public: // from MAiPluginState
void Enter( MAiPluginStateMachine& aStateMachine,
TAiStateChanges aStateChange );
TBool HandleEvent( MAiPluginStateMachine& aStateMachine,
TAiStateChanges aStateChange );
void Exit( MAiPluginStateMachine& aStateMachine,
TAiStateChanges aStateChange );
private: // data
/**
* Pointer to current state.
* Not owned.
*/
MAiPluginState* iCurrentState;
/**
* Pointer to parent state machine.
* Not owned.
*/
MAiPluginStateMachine* iParentStateMachine;
/**
* Alive active state.
*/
TAiStateAliveActive iStateAliveActive;
/**
* Alive incall state.
*/
TAiStateAliveIncall iStateAliveIncall;
/**
* Alive inactive state.
*/
TAiStateAliveInactive iStateAliveInactive;
};
#endif // T_AISTATEALIVE_H