diff -r 000000000000 -r f63038272f30 bluetoothengine/btsap/inc/BTSapSimCardStatusNotifier.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluetoothengine/btsap/inc/BTSapSimCardStatusNotifier.h Mon Jan 18 20:28:57 2010 +0200 @@ -0,0 +1,95 @@ +/* +* Copyright (c) 2004 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 sends SIM card status indication to a client +* +* +*/ + + +#ifndef BT_SAP_SIM_CARD_STATUS_NOTIFIER_H +#define BT_SAP_SIM_CARD_STATUS_NOTIFIER_H + +// INCLUDES +#include + +#ifdef _DUMMY_CUSTOM_API +#include +#else +#include +#endif + +// FORWARD DECLARATIONS +class CBTSapServerState; + +// CLASS DECLARATION + +/** +* SIM card status handler class. +*/ +class CBTSapSimCardStatusNotifier : public CActive + { +public: + + // Constructors + static CBTSapSimCardStatusNotifier* NewL(CBTSapServerState& aBTSapServerState); + + // Destructor + ~CBTSapSimCardStatusNotifier(); + +private: // From CActive + + /** + * DoCancel() has to be implemented by all the classes deriving CActive. + * Request cancellation routine. + * @param none + * @return none + */ + void DoCancel(); + + /** + * RunL is called by framework after request is being completed. + * @param nones + * @return none + */ + void RunL(); + +public: + + /** + * Start waiting for SIM card status change notification + * @param None + * @return None. + */ + + void Start(); + +private: + + // Two-phase constructor + void ConstructL(); + + // Default constructor + CBTSapSimCardStatusNotifier(CBTSapServerState& aBTSapServerState); + +private: + + CBTSapServerState& iBTSapServerState; + RMmCustomAPI& iSubscriptionModule; + RMmCustomAPI::TSIMCardStatus iCardStatus; + }; + +#endif // BT_SAP_SIM_CARD_STATUS_NOTIFIER_H + +// End of File