filebrowser/ui/inc/fbfileentry.h
changeset 48 da3ec8478e66
equal deleted inserted replaced
47:11fa016241a4 48:da3ec8478e66
       
     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 FbFileEntry
       
    30 {
       
    31 public:
       
    32     /**
       
    33      * Constructor
       
    34      */
       
    35     FbFileEntry(TFileEntry aFileEntry);
       
    36     
       
    37     /**
       
    38      * Destructor
       
    39      */
       
    40     ~FbFileEntry();
       
    41     
       
    42     /* Functions that are called from UI */
       
    43 public: 
       
    44     QString fullName();
       
    45     QString path();
       
    46 
       
    47     int attributes();
       
    48     QString attributesString();
       
    49     bool isArchive() { return mFileEntry.iEntry.IsArchive(); }
       
    50     bool isHidden() { return mFileEntry.iEntry.IsHidden(); }
       
    51     bool isReadOnly() { return mFileEntry.iEntry.IsReadOnly(); }
       
    52     bool isSystem() { return mFileEntry.iEntry.IsSystem(); }
       
    53 
       
    54     int size();
       
    55     QString sizeString();
       
    56 
       
    57 //    QDateTime modified();
       
    58     QString modifiedString();
       
    59 //    int Uid(int id);
       
    60     bool isDir();
       
    61     QString name();
       
    62 
       
    63     int dirEntries();
       
    64     QString dirEntriesString();
       
    65 
       
    66     int iconId();
       
    67 
       
    68 private:
       
    69     TFileEntry mFileEntry;
       
    70     };
       
    71 
       
    72 #endif //FBFILEEENTRY_H