Builds on windows again
This commit is contained in:
parent
33cf39b799
commit
bebb3391c3
160 changed files with 138 additions and 117 deletions
|
|
@ -1,54 +0,0 @@
|
|||
#ifndef CONNECTIONLIST_H
|
||||
#define CONNECTIONLIST_H
|
||||
|
||||
#include "ConnectionConfig.h"
|
||||
|
||||
#include <QString>
|
||||
#include <QUuid>
|
||||
#include <vector>
|
||||
#include "Expected.h"
|
||||
|
||||
|
||||
class ConnectionList {
|
||||
private:
|
||||
static QString iniFileName();
|
||||
|
||||
public:
|
||||
|
||||
ConnectionList();
|
||||
int size() const { return m_connections.size(); }
|
||||
|
||||
ConnectionConfig& getConfigByIdx(int idx)
|
||||
{
|
||||
return m_connections.at(idx).m_config;
|
||||
}
|
||||
|
||||
int createNew();
|
||||
|
||||
void remove(int idx, int count);
|
||||
|
||||
void load();
|
||||
void save();
|
||||
void save(int index);
|
||||
|
||||
|
||||
private:
|
||||
class LijstElem {
|
||||
public:
|
||||
QUuid m_uuid;
|
||||
ConnectionConfig m_config;
|
||||
|
||||
LijstElem(const QUuid id, const ConnectionConfig &cfg)
|
||||
: m_uuid(id), m_config(cfg)
|
||||
{}
|
||||
};
|
||||
|
||||
using t_Connections = std::vector<LijstElem>;
|
||||
t_Connections m_connections;
|
||||
|
||||
void deleteFromIni(t_Connections::iterator begin, t_Connections::iterator end);
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // CONNECTIONLIST_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue