diff -r 000000000000 -r 164170e6151a secsrv_plat/devenccommonutils_api/inc/DevEncMmcObserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/secsrv_plat/devenccommonutils_api/inc/DevEncMmcObserver.h Tue Jan 26 15:20:08 2010 +0200 @@ -0,0 +1,62 @@ +/* +* Copyright (c) 2003 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: +* +* +*/ + + +#ifndef __MMCOBSERVER_H__ +#define __MMCOBSERVER_H__ + +#include + +class RFs; + +class MMemoryCardObserver + { + public: + /** + * Implement this method to be notified when MMC status + * changes. + */ + virtual void MMCStatusChangedL() = 0; + }; + +class CMmcObserver : public CActive + { + public: + IMPORT_C static CMmcObserver* NewL( MMemoryCardObserver* aObserver, + RFs* aFileServerSession ); + IMPORT_C void StartObserver(); + + // TBI + IMPORT_C TBool MMCCurrentlyInserted(); + + void RunL(); + void DoCancel(); + ~CMmcObserver(); + + private: + void ConstructL( MMemoryCardObserver* aObserver, + RFs* aFileServerSession ); + CMmcObserver(); + MMemoryCardObserver* iObserver; + RFs* iFsSession; + CAsyncCallBack* iAsyncCallBack; + }; + +#endif // __MMCOBSERVER_H__ + +// End of File