ARC Graphical Clients: /home/jonas/Development/arc-gui-clients/src/arcstorage-ui/arcfileelement.h Source File

- Main Page
- Classes
- Files

- File List

# /home/jonas/Development/arc-gui-clients/src/arcstorage-ui/arcfileelement.h

    00001 #ifndef ARCFILEELEMENT_H
    00002 #define ARCFILEELEMENT_H
    00003
    00004 #include <QString>
    00005 #include <QDateTime>
    00006
    00007 enum ARCFileType { ARCUndefined, ARCDir, ARCFile };
    00008
    00014 class ARCFileElement
    00015 {
    00016 private:
    00017     QString fileName;
    00018     QString filePath;
    00019     QString group;
    00020     bool executable;
    00021     bool readable;
    00022     bool writable;
    00023     QDateTime lastModified;
    00024     QDateTime lastRead;
    00025     QString owner;
    00026     int permissions;
    00027     qint64 size;
    00028
    00029     enum ARCFileType fileType;
    00030
    00031 public:
    00032     ARCFileElement();
    00033     ARCFileElement(QString fn,
    00034                    QString fp,
    00035                    enum ARCFileType ft,
    00036                    QString grp,
    00037                    bool exec,
    00038                    bool read,
    00039                    bool write,
    00040                    QDateTime lstModified,
    00041                    QDateTime lstRead,
    00042                    QString ownr,
    00043                    int perm,
    00044                    qint64 sze);
    00045     QString          getFileName()    { return fileName;     }
    00046     QString          getFilePath()    { return filePath;     }
    00047     enum ARCFileType getFileType()    { return fileType;     }
    00048     QString          getGroup()       { return group;        }
    00049     bool             isExecutable()   { return executable;   }
    00050     bool             isReadable()     { return readable;     }
    00051     bool             isWritable()     { return writable;     }
    00052     QDateTime        getLastModfied() { return lastModified; }
    00053     QDateTime        getLastRead()    { return lastRead;     }
    00054     QString          getOwner()       { return owner;        }
    00055     int              getPermissions() { return permissions;  }
    00056     qint64           getSize()        { return size;         }
    00057 };
    00058
    00059 #endif // ARCFILEELEMENT_H

All Classes Functions Variables