bump version
[vng.git] / src / RemoteRepo.h
blobb22fd9a4e9836d028004fe4dc73788a312da0492
1 #ifndef REMOTEREPO_H
2 #define REMOTEREPO_H
4 #include <QString>
5 #include <QExplicitlySharedDataPointer>
7 // TODO move to .cpp
8 class RemoteRepoPrivate : public QSharedData
10 public:
11 RemoteRepoPrivate() : isDefaultRepo(false) { }
12 QString name;
13 QString url;
14 bool isDefaultRepo;
17 /**
18 * A repository that is registered in the configuration.
20 class RemoteRepo
22 public:
23 RemoteRepo();
24 RemoteRepo(const RemoteRepo &other);
25 RemoteRepo(const QString &name, const QString &url);
26 ~RemoteRepo();
28 void setIsDefault(bool on);
29 bool isDefault() const;
31 QString name() const;
32 QString url() const;
34 bool isValid() const { return d; }
36 private:
37 QExplicitlySharedDataPointer<RemoteRepoPrivate> d;
40 #endif