diff -r 000000000000 -r 96612d01cf9f videofeeds/utils/inc/TIptvDriveMonitorEvent.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videofeeds/utils/inc/TIptvDriveMonitorEvent.h Mon Jan 18 20:21:12 2010 +0200 @@ -0,0 +1,125 @@ +/* +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "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: Drive monitor event object* +*/ + + + + + +#ifndef TIPTVDRIVEMONITOREVENT_H +#define TIPTVDRIVEMONITOREVENT_H + +// INCLUDES +#include +#include "CIptvUtil.h" +#include "IptvDebug.h" + +// CONSTANTS + +// MACROS + +// DATA TYPES + +// FUNCTION PROTOTYPES + +// FORWARD DECLARATIONS + +// CLASS DECLARATION + +/** +* Used for sending events from CIptvDriveMonitor to client. +*/ +class TIptvDriveMonitorEvent + { + public: + + /** + * Events, used in iEvent member variable. + */ + enum TEvent + { + /** + * Value used at construction. + */ + ENone, + + /** + * Media was removed (typically memory card). + */ + EMediaRemoved, + + /** + * Media was inserted (typically memory card). + */ + EMediaInserted, + + /** + * Drive was locked. + */ + EDriveLocked, + + /** + * Drive was unlocked. + */ + EDriveUnlocked, + + /** + * Drive was mounted. + */ + EDriveMounted, + + /** + * Drive was dismounted. + */ + EDriveDismounted, + + /** + * Drive volume name was changed. + */ + EDriveVolumeNameChanged + }; + + public: // Constructors and destructor + + /** + * C++ default constructor. + */ + IMPORT_C TIptvDriveMonitorEvent(); + + /** + * Returns event as a descriptor. Used for debugging purposes. + * + * @param aEvent Event as enum. + * @return Event as a descriptor. + */ + static const TDesC& EventDes( TEvent aEvent ); + + public: + + /** + * Identifies the event, see TEvent for values. + */ + TInt iEvent; + + /** + * The drive which caused the event (a = 0, b = 1, ... etc). + */ + TInt iDrive; + + }; + +#endif // TIPTVDRIVEMONITOREVENT_H + +// End of File