filebrowser/ui/inc/driveentry.h
branchRCL_3
changeset 19 b3cee849fa46
equal deleted inserted replaced
18:48060abbbeaf 19:b3cee849fa46
       
     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 "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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef DRIVEENTRY_H
       
    19 #define DRIVEENTRY_H
       
    20 
       
    21 #include "FBFileUtils.h"
       
    22 #include <QString>
       
    23 #include <QDate>
       
    24 
       
    25 
       
    26 /**
       
    27  * class that is used for communicating between Symbian and Qt code.
       
    28  */
       
    29 class DriveEntry {
       
    30 
       
    31 public:
       
    32     
       
    33     /**
       
    34      * Constructor
       
    35      */
       
    36     DriveEntry(TDriveEntry aDriveEntry);
       
    37     
       
    38     /**
       
    39      * Destructor
       
    40      */
       
    41     ~DriveEntry();
       
    42     
       
    43     /* Functions that are called from UI */
       
    44 public: 
       
    45     QChar driveLetter();
       
    46     int number();
       
    47     QString mediaTypeString();
       
    48     QString attributesString();
       
    49     int iconId();
       
    50     qint64 volumeInfoFree();
       
    51     qint64 volumeInfoSize();
       
    52 
       
    53 private:
       
    54     TDriveEntry mDriveEntry;
       
    55     };
       
    56 
       
    57 #endif //DRIVEENTRY_H