videocollection/mpxmyvideoscollection/inc/vcxmyvideosdriveinfo.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 12:00:59 +0200
changeset 1 6711b85517b7
parent 0 96612d01cf9f
permissions -rw-r--r--
Revision: 201001 Kit: 201004

/*
* Copyright (c) 2008 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:    header file for TVcxMyVideosDriveInfo class*
*/





#ifndef VCXMYVIDEOSDRIVEINFO_H
#define VCXMYVIDEOSDRIVEINFO_H

//  INCLUDES
#include <e32base.h>

const TInt KVcxMyVideosDriveNameMaxLength = 256;

// CLASS DECLARATION
/**
* Container class for storing drive info relevant for MPX My Videos Collection.
*/
NONSHARABLE_CLASS(TVcxMyVideosDriveInfo)
    {
    public:

        /*
        * Attribute flags used in iFlags member.
        */
        enum TDriveAttributes
            {
            /**
            * Media can be removed from the drive, (E or F, depending on hw configuration).
            * If not set (= 0) then the drive is fixed.
            */
            ERemovable = 1 << 0,

            /**
            * Default mass storage drive.
            */
            EMassStorage = 1 << 1,
            
            /**
            * Media is locked.
            */
            ELocked = 1 << 2,
            
            /**
            * Media is removed from the drive.
            */
            EMediaNotPresent = 1 << 3            
            };
            
        /**
        * Constructor, clears member variables to zero.
        */
        TVcxMyVideosDriveInfo();
            
    public:
    
        /**
        * Drive ID number, 0 points to A:, 1 to B:, 2 to C: and so on.
        */
        TInt iDrive;

        /**
        * Drive char.
        */
        TChar iDriveChar;
        
        /**
        * Drive type, same as TDriveInfo::iType.
        */
        TInt iType;

        /**
        * Properties of the drive, see TDriveAttributes -enum for flag values.
        */
        TUint32 iFlags;
        
        /**
        * Volume name. Removable drive can contain different volumes (mmc cards). This name
        * refers to removable item (card label), not the drive. 
        */
        TBuf<KVcxMyVideosDriveNameMaxLength> iVolumeName;
    };

#endif