videocollection/hgmyvideos/inc/TIptvDriveMonitorEvent.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 15 Jul 2010 18:41:27 +0300
branchRCL_3
changeset 53 2d690156cf8f
parent 10 ce5ada96ab30
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* Copyright (c) 2010 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 <e32base.h>

// CONSTANTS
_LIT( KIptvEmptyDes, "" );

// 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.
        */
        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