Quark  0.1
GCloudObject.h++
Go to the documentation of this file.
1 #ifndef __libquark_gcloud_GCloudObject_hxx
2 #define __libquark_gcloud_GCloudObject_hxx
3 
4 #include <QSharedDataPointer>
5 #include <QString>
6 #include <QUrl>
7 
8 namespace quark {
9 namespace gcloud {
10 
11 class GCloudStorage;
12 
13 class GCloudObjectPrivateData;
14 
16 {
17  friend class GCloudStorage;
18 
19  public:
20 
21  GCloudObject(const GCloudObject &other);
22  virtual ~GCloudObject();
23 
24  GCloudObject& operator=(const GCloudObject &other);
25 
26  QString id() const;
27  QString name() const;
28  QString bucketName() const;
29  QString contentType() const;
30  qint64 updateTime() const;
31  qint64 size() const;
32  QUrl selfLink() const;
33 
34  private:
35 
36  GCloudObject();
37  void setId(const QString &id);
38  void setName(const QString &name);
39  void setBucketName(const QString &bucketName);
40  void setContentType(const QString &contentType);
41  void setUpdateTime(const qint64 &updateTime);
42  void setSize(const qint64 &size);
43  void setSelfLink(const QUrl &selfLink);
44 
45  QSharedDataPointer<GCloudObjectPrivateData> _privateData;
46 };
47 
48 } // namespace gcloud
49 } // namespace quark
50 
51 #endif // __libquark_gcloud_GCloudObject_hxx
GCloudObject & operator=(const GCloudObject &other)
Definition: BarChartView.h++:6
Definition: GCloudObject.h++:15
QString contentType() const
Definition: GCloudStorage.h++:21
QString bucketName() const