mediasettings/videoplayersettingsengine/inc/tvideosettingsdriveinfo.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2007 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:   header file for TIptvDriveInfo class*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #ifndef TVIDEOSETTINGDRIVEINFO_H
       
    21 #define TVIDEOSETTINGDRIVEINFO_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 const TInt KIptvDriveNameMaxLength = 256;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30 * Container class for storing drive info relevant for Video Center.
       
    31 */
       
    32 class TIptvDriveInfo
       
    33     {
       
    34     public:
       
    35 
       
    36         /*
       
    37         * Attribute flags used in iFlags member.
       
    38         */
       
    39         enum TDriveAttributes
       
    40             {
       
    41             /**
       
    42             * Media can be removed from the drive, (E or F, depending on hw configuration).
       
    43             * If not set (= 0) then the drive is fixed.
       
    44             */
       
    45             ERemovable = 1 << 0,
       
    46 
       
    47             /**
       
    48             * Default mass storage drive.
       
    49             */
       
    50             EMassStorage = 1 << 1,
       
    51             
       
    52             /**
       
    53             * Media is locked.
       
    54             */
       
    55             ELocked = 1 << 2,
       
    56             
       
    57             /**
       
    58             * Media is removed from the drive.
       
    59             */
       
    60             EMediaNotPresent = 1 << 3            
       
    61             };
       
    62             
       
    63         /**
       
    64         * Constructor, clears member variables to zero.
       
    65         */
       
    66         IMPORT_C TIptvDriveInfo();
       
    67 
       
    68         /**
       
    69         * Destructor.
       
    70         */
       
    71         IMPORT_C ~TIptvDriveInfo();
       
    72             
       
    73     public:
       
    74     
       
    75         /**
       
    76         * Drive ID number, 0 points to A:, 1 to B:, 2 to C: and so on.
       
    77         */
       
    78         TInt iDrive;
       
    79 
       
    80         /**
       
    81         * Drive char.
       
    82         */
       
    83         TChar iDriveChar;
       
    84         
       
    85         /**
       
    86         * Drive type, same as TDriveInfo::iType.
       
    87         */
       
    88         TInt iType;
       
    89 
       
    90         /**
       
    91         * Properties of the drive, see TDriveAttributes -enum for flag values.
       
    92         */
       
    93         TUint32 iFlags;
       
    94         
       
    95         /**
       
    96         * Volume name. Removable drive can contain different volumes (mmc cards). This name
       
    97         * refers to removable item (card label), not the drive. 
       
    98         */
       
    99         TBuf<KIptvDriveNameMaxLength> iVolumeName;
       
   100     };
       
   101 
       
   102 #endif