summaryrefslogtreecommitdiff
path: root/boardmanager.h
blob: fcbfa3d6fc2925ecbb6a0c156212b8a2d9d8c603 (plain)
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
#ifndef BOARDMANAGER_H
#define BOARDMANAGER_H

#include <QtCore/QObject>
#include <QtCore/QHash>
#include <QtCore/QUrl>

class Board;

class BoardManager : public QObject
{
	Q_OBJECT
public:
	explicit BoardManager(QObject *parent = 0);
	
	Q_INVOKABLE Board *getBoard(const QUrl& url, const QString& username = QString(), const QString& password = QString());

	QString getCachePath() const;

private:
	QHash<QUrl, Board*> _boards;
	
};

#endif // BOARDMANAGER_H