Picture.h 466 B

123456789101112131415161718192021222324252627282930
  1. #ifndef PICTURE_H
  2. #define PICTURE_H
  3. #include <QString>
  4. #include <QUrl>
  5. #include "gallery-core_global.h"
  6. class GALLERYCORE_EXPORT Picture {
  7. public:
  8. Picture(const QString& filePath = "");
  9. Picture(const QUrl& fileUrl);
  10. int id() const;
  11. void setId(int id);
  12. int albumId() const;
  13. void setAlbumId(int albumId);
  14. QUrl fileUrl() const;
  15. void setFileUrl(const QUrl& fileUrl);
  16. private:
  17. int mId;
  18. int mAlbumId;
  19. QUrl mFileUrl;
  20. };
  21. #endif // PICTURE_H