filebrowser/ui/inc/fileentry.h
branchRCL_3
changeset 21 b3cee849fa46
equal deleted inserted replaced
20:48060abbbeaf 21: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 FILEEENTRY_H
       
    19 #define FILEEENTRY_H
       
    20 
       
    21 #include "FBFileUtils.h"
       
    22 #include <QString>
       
    23 #include <QDate>
       
    24 #include <QStringList>
       
    25 
       
    26 /**
       
    27  * class that is used for communicating between Symbian and Qt code.
       
    28  */
       
    29 class FileEntry {
       
    30 
       
    31 public:
       
    32     
       
    33     /**
       
    34      * Constructor
       
    35      */
       
    36     FileEntry(TFileEntry aFileEntry);
       
    37     
       
    38     /**
       
    39      * Destructor
       
    40      */
       
    41     ~FileEntry();
       
    42     
       
    43     /* Functions that are called from UI */
       
    44 public: 
       
    45     QString fullName();
       
    46     QString path();
       
    47 
       
    48     int attributes();
       
    49     QString attributesString();
       
    50 
       
    51     int size();
       
    52     QString sizeString();
       
    53 
       
    54 //    QDateTime modified();
       
    55     QString modifiedString();
       
    56 //    int Uid(int id);
       
    57     bool isDir();
       
    58     QString name();
       
    59 
       
    60     int dirEntries();
       
    61     QString dirEntriesString();
       
    62 
       
    63     int iconId();
       
    64 
       
    65 private:
       
    66     TFileEntry mFileEntry;
       
    67     };
       
    68 
       
    69 #endif //FILEEENTRY_H