You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
542 B
37 lines
542 B
#pragma once
|
|
|
|
#include <QMap>
|
|
|
|
class QString;
|
|
|
|
struct UserInfo
|
|
{
|
|
QString name;
|
|
QString psw;
|
|
};
|
|
|
|
struct MountPoint {
|
|
// constant info
|
|
QString dev;
|
|
QString label;
|
|
QString size;
|
|
QString fs;
|
|
// from gui to installer
|
|
QString mountpoint;
|
|
// bool bind;
|
|
QString fs_new;
|
|
bool format;
|
|
|
|
MountPoint() : /*bind(false),*/ format(false) {};
|
|
};
|
|
|
|
template <class K, class T>
|
|
class InitializableMap: public QMap<K, T>
|
|
{
|
|
public:
|
|
InitializableMap<K, T>& operator<< (const QPair<K, T>& t)
|
|
{
|
|
insert(t.first, t.second); return *this;
|
|
}
|
|
};
|