00001 #ifndef MYTHDBPARAMS_H_
00002 #define MYTHDBPARAMS_H_
00003
00004 #include <QString>
00005
00006 #include "mythbaseexp.h"
00007
00009 class MBASE_PUBLIC DatabaseParams
00010 {
00011 public:
00012 DatabaseParams() { LoadDefaults(); }
00013
00014 void LoadDefaults(void);
00015 bool IsValid(const QString &source = QString("Unknown")) const;
00016
00017 bool operator==(const DatabaseParams &other) const;
00018 bool operator!=(const DatabaseParams &other) const
00019 { return !((*this)==other); }
00020
00021 QString dbHostName;
00022 bool dbHostPing;
00023 int dbPort;
00024 QString dbUserName;
00025 QString dbPassword;
00026 QString dbName;
00027 QString dbType;
00028
00029 bool localEnabled;
00030 QString localHostName;
00031
00032 bool wolEnabled;
00033 int wolReconnect;
00034 int wolRetry;
00035 QString wolCommand;
00036
00037 bool forceSave;
00038
00039 QString verVersion;
00040 QString verBranch;
00041 QString verProtocol;
00042 QString verBinary;
00043 QString verSchema;
00044 };
00045
00046 #endif
00047