-
Notifications
You must be signed in to change notification settings - Fork 0
/
Repository.hpp
34 lines (28 loc) · 879 Bytes
/
Repository.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef REPOSITORY_HPP
#define REPOSITORY_HPP
#include <QMap>
#include <QString>
#include <QStringList>
#include "RepositoryParser.hpp"
class Repository
{
public:
typedef RepositoryParser::Categories Categories;
typedef RepositoryParser::Masters Masters;
typedef RepositoryParser::Packages Packages;
typedef QMap<QString, Repository> Repositories;
Repository();
Repository(const Repository& other);
Repository(const RepositoryParser& parser, Repositories* repositories);
Categories getCategories() const;
const QDir& getDir() const;
QString getName() const;
Masters getMasters() const;
const RepositoryParser& getParser() const;
Packages getPackages() const;
Packages getPackages(const QString& strCategory) const;
private:
RepositoryParser m_Parser;
Repositories* m_Repositories;
};
#endif // REPOSITORY_HPP