mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-03 20:06:58 +03:00
Implemented loadList() stuff.
This commit is contained in:
parent
80cd8b33aa
commit
6e5017e48b
10 changed files with 145 additions and 654 deletions
|
|
@ -24,16 +24,34 @@
|
|||
|
||||
class Instance;
|
||||
|
||||
class InstanceList : public QObject, SigList<QSharedPointer<Instance>>
|
||||
class InstanceList : public QObject, public SigList<QSharedPointer<Instance>>
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit InstanceList(QObject *parent = 0);
|
||||
explicit InstanceList(const QString &instDir, QObject *parent = 0);
|
||||
|
||||
signals:
|
||||
/*!
|
||||
* \brief Error codes returned by functions in the InstanceList class.
|
||||
* NoError Indicates that no error occurred.
|
||||
* UnknownError indicates that an unspecified error occurred.
|
||||
*/
|
||||
enum InstListError
|
||||
{
|
||||
NoError = 0,
|
||||
UnknownError
|
||||
};
|
||||
|
||||
public slots:
|
||||
QString instDir() const { return m_instDir; }
|
||||
|
||||
/*!
|
||||
* \brief Loads the instance list.
|
||||
*/
|
||||
InstListError loadList();
|
||||
|
||||
DEFINE_SIGLIST_SIGNALS(QSharedPointer<Instance>);
|
||||
SETUP_SIGLIST_SIGNALS(QSharedPointer<Instance>);
|
||||
protected:
|
||||
QString m_instDir;
|
||||
};
|
||||
|
||||
#endif // INSTANCELIST_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue