summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/kcm_sambaconf/sambafile.h
diff options
context:
space:
mode:
Diffstat (limited to 'filesharing/advanced/kcm_sambaconf/sambafile.h')
-rw-r--r--filesharing/advanced/kcm_sambaconf/sambafile.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/filesharing/advanced/kcm_sambaconf/sambafile.h b/filesharing/advanced/kcm_sambaconf/sambafile.h
index ab5d58c4..543082ba 100644
--- a/filesharing/advanced/kcm_sambaconf/sambafile.h
+++ b/filesharing/advanced/kcm_sambaconf/sambafile.h
@@ -21,9 +21,9 @@
#define SAMBAFILE_H
-#include <qdict.h>
-#include <qstring.h>
-#include <qobject.h>
+#include <tqdict.h>
+#include <tqstring.h>
+#include <tqobject.h>
#include <kio/job.h>
#include "sambashare.h"
@@ -39,49 +39,49 @@ class SambaFile;
class SambaFileLoadException
{
public:
- SambaFileLoadException(const QString & msg) { message = msg; };
+ SambaFileLoadException(const TQString & msg) { message = msg; };
- QString getMessage() { return message; };
+ TQString getMessage() { return message; };
protected:
- QString message;
+ TQString message;
};
-class SambaConfigFile : public QDict<SambaShare>
+class SambaConfigFile : public TQDict<SambaShare>
{
public:
SambaConfigFile(SambaFile*);
- QString getDefaultValue(const QString & name);
- QStringList getShareList();
- void addShare(const QString & name, SambaShare* share);
- SambaShare* addShare(const QString & name);
- void removeShare(const QString & name);
+ TQString getDefaultValue(const TQString & name);
+ TQStringList getShareList();
+ void addShare(const TQString & name, SambaShare* share);
+ SambaShare* addShare(const TQString & name);
+ void removeShare(const TQString & name);
protected:
SambaFile* _sambaFile;
- QStringList _shareList;
+ TQStringList _shareList;
};
class SambaFile : public QObject
{
Q_OBJECT
public:
- SambaFile(const QString & _path, bool _readonly=true);
+ SambaFile(const TQString & _path, bool _readonly=true);
~SambaFile();
/** No descriptions */
- QString findShareByPath(const QString & path) const;
- void removeShareByPath(const QString & path);
+ TQString findShareByPath(const TQString & path) const;
+ void removeShareByPath(const TQString & path);
- SambaShare* newShare(const QString & name);
- SambaShare* newShare(const QString & name, const QString & path);
- SambaShare* newPrinter(const QString & name, const QString & printer);
+ SambaShare* newShare(const TQString & name);
+ SambaShare* newShare(const TQString & name, const TQString & path);
+ SambaShare* newPrinter(const TQString & name, const TQString & printer);
- void removeShare(const QString & share);
+ void removeShare(const TQString & share);
void removeShare(SambaShare* share);
- void renameShare(const QString & oldName, const QString & newName);
+ void renameShare(const TQString & oldName, const TQString & newName);
- SambaShare* getShare(const QString & share) const;
+ SambaShare* getShare(const TQString & share) const;
/**
* Returns a list of all shared directories
@@ -100,7 +100,7 @@ public:
* E.g.: if public is already used, the method could return
* public2
**/
- QString getUnusedName(const QString alreadyUsedName=QString::null) const;
+ TQString getUnusedName(const TQString alreadyUsedName=TQString::null) const;
/**
* Returns all values of the global section
@@ -111,7 +111,7 @@ public:
**/
SambaShare* getTestParmValues(bool reload=false);
- static QString findSambaConf();
+ static TQString findSambaConf();
int getSambaVersion();
@@ -135,21 +135,21 @@ public:
* Save all data to the specified file
* if successful returns true otherwise false
**/
- bool saveTo(const QString & path);
+ bool saveTo(const TQString & path);
protected:
bool readonly;
bool changed;
- QString path;
- QString localPath;
+ TQString path;
+ TQString localPath;
SambaConfigFile *_sambaConfig;
SambaShare* _testParmValues;
- QString _parmOutput;
+ TQString _parmOutput;
int _sambaVersion;
void parseParmStdOutput();
SambaConfigFile* getSambaConfigFile(KSimpleConfig* config);
- KSimpleConfig* getSimpleConfig(SambaConfigFile* sambaConfig, const QString & filename);
+ KSimpleConfig* getSimpleConfig(SambaConfigFile* sambaConfig, const TQString & filename);
@@ -170,7 +170,7 @@ protected slots:
void slotSaveJobFinished( KIO::Job *);
signals:
- void canceled(const QString &);
+ void canceled(const TQString &);
void completed();
};