LibEngsas
efileinfo.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2011 - 2012 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17  MA 02110-1301 USA.
18 */
19 
20 #ifndef EFILEINFO_H
21 #define EFILEINFO_H
22 
23 #include "eglobal.h"
24 
25 #include <QString>
26 
31 {
32  public:
33  EFileInfo();
34 
40  bool isValid() const;
41 
42  void setId(QString id);
47  QString id() const;
48  void setName(QString name);
55  QString name() const;
56  void setSize(quint64 size);
60  quint64 size();
61  void setMimeType(QString mimeType);
65  QString mimeType() const;
66 
67  bool operator== (const EFileInfo &info) const;
68  bool operator== (const QString &id) const;
69  bool operator!= (const EFileInfo &info) const;
70  bool operator!= (const QString &id) const;
71 
72  private:
73  QString myId, myName, myMimeType;
74  quint64 mySize;
75 };
76 
77 #endif // EFILEINFO_H
QString myName
Definition: efileinfo.h:73
#define E_CORE_EXPORT
Definition: eglobal.h:107
Data about a file handled by EFileService.
Definition: efileinfo.h:30
quint64 mySize
Definition: efileinfo.h:74