videocollection/hgmyvideos/inc/TIptvDriveMonitorEvent.h
branchRCL_3
changeset 10 ce5ada96ab30
equal deleted inserted replaced
6:7d91903f795f 10:ce5ada96ab30
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    Drive monitor event object*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef TIPTVDRIVEMONITOREVENT_H
       
    22 #define TIPTVDRIVEMONITOREVENT_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 // CONSTANTS
       
    28 _LIT( KIptvEmptyDes, "" );
       
    29 
       
    30 // MACROS
       
    31 
       
    32 // DATA TYPES
       
    33 
       
    34 // FUNCTION PROTOTYPES
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41 *  Used for sending events from CIptvDriveMonitor to client.
       
    42 */
       
    43 class TIptvDriveMonitorEvent
       
    44     {
       
    45     public:
       
    46     
       
    47         /**
       
    48         * Events, used in iEvent member variable.
       
    49         */
       
    50         enum TEvent
       
    51             {
       
    52             /**
       
    53             * Value used at construction.
       
    54             */                
       
    55             ENone,
       
    56             
       
    57             /**
       
    58             * Media was removed (typically memory card).
       
    59             */                
       
    60             EMediaRemoved,
       
    61 
       
    62             /**
       
    63             * Media was inserted (typically memory card).
       
    64             */
       
    65             EMediaInserted,
       
    66             
       
    67             /**
       
    68             * Drive was locked.
       
    69             */
       
    70             EDriveLocked,
       
    71             
       
    72             /**
       
    73             * Drive was unlocked.
       
    74             */
       
    75             EDriveUnlocked,
       
    76 
       
    77             /**
       
    78             * Drive was mounted.
       
    79             */            
       
    80             EDriveMounted,
       
    81 
       
    82             /**
       
    83             * Drive was dismounted.
       
    84             */            
       
    85             EDriveDismounted,
       
    86             
       
    87             /**
       
    88             * Drive volume name was changed.
       
    89             */
       
    90             EDriveVolumeNameChanged
       
    91             };
       
    92             
       
    93     public:  // Constructors and destructor
       
    94         
       
    95         /**
       
    96         * C++ default constructor.
       
    97         */
       
    98         TIptvDriveMonitorEvent();
       
    99 
       
   100         /**
       
   101         * Returns event as a descriptor. Used for debugging purposes.
       
   102         *
       
   103         * @param aEvent Event as enum.
       
   104         * @return       Event as a descriptor.
       
   105         */
       
   106         static const TDesC& EventDes( TEvent aEvent );
       
   107 
       
   108     public:
       
   109     
       
   110         /**
       
   111         * Identifies the event, see TEvent for values.
       
   112         */
       
   113         TInt  iEvent;
       
   114         
       
   115         /**
       
   116         * The drive which caused the event (a = 0, b = 1, ... etc).
       
   117         */
       
   118         TInt iDrive;
       
   119 
       
   120     };
       
   121 
       
   122 #endif      // TIPTVDRIVEMONITOREVENT_H   
       
   123             
       
   124 // End of File