mediasettings/videoplayersettingsengine/inc/tvideosettingsdrivemonitorevent.h
author Fionntina Carville <fionntinac@symbian.org>
Mon, 15 Nov 2010 11:50:30 +0000
branchRCL_3
changeset 73 f89a65650939
parent 0 96612d01cf9f
permissions -rw-r--r--
Bug 3539. Update localisation mappings for videoplayer.

/*
* 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 TVIDEOSETTINGDRIVEMONITOREVENT_H
#define TVIDEOSETTINGDRIVEMONITOREVENT_H

//  INCLUDES
#include <e32base.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      // TVIDEOSETTINGDRIVEMONITOREVENT_H   
            
// End of File