summaryrefslogtreecommitdiffstats
path: root/kuser/kuser.h
diff options
context:
space:
mode:
Diffstat (limited to 'kuser/kuser.h')
-rw-r--r--kuser/kuser.h134
1 files changed, 67 insertions, 67 deletions
diff --git a/kuser/kuser.h b/kuser/kuser.h
index 4e3c24e..ee6dbab 100644
--- a/kuser/kuser.h
+++ b/kuser/kuser.h
@@ -23,8 +23,8 @@
#include <sys/types.h>
-#include <qstring.h>
-#include <qptrlist.h>
+#include <tqstring.h>
+#include <tqptrlist.h>
#include "globals.h"
#include "sid.h"
@@ -48,25 +48,25 @@ public:
int getCaps();
//General
- const QString &getName() const;
- const QString &getSurname() const;
- const QString &getEmail() const;
- const QString &getPwd() const;
- const QString &getHomeDir() const;
- const QString &getShell() const;
- const QString &getFullName() const;
+ const TQString &getName() const;
+ const TQString &getSurname() const;
+ const TQString &getEmail() const;
+ const TQString &getPwd() const;
+ const TQString &getHomeDir() const;
+ const TQString &getShell() const;
+ const TQString &getFullName() const;
uid_t getUID() const;
uid_t getGID() const;
bool getDisabled() const;
- void setName(const QString &data);
- void setSurname(const QString &data);
- void setEmail(const QString &data);
- void setPwd(const QString &data);
- void setHomeDir(const QString &data);
- void setShell(const QString &data);
- void setFullName(const QString &data);
+ void setName(const TQString &data);
+ void setSurname(const TQString &data);
+ void setEmail(const TQString &data);
+ void setPwd(const TQString &data);
+ void setHomeDir(const TQString &data);
+ void setShell(const TQString &data);
+ void setFullName(const TQString &data);
void setUID(uid_t data);
void setGID(uid_t data);
@@ -74,27 +74,27 @@ public:
//gecos
//--BSD gecos
- const QString &getOffice() const;
- const QString &getWorkPhone() const;
- const QString &getHomePhone() const;
- const QString &getClass() const;
+ const TQString &getOffice() const;
+ const TQString &getWorkPhone() const;
+ const TQString &getHomePhone() const;
+ const TQString &getClass() const;
//--BSD end
- const QString &getOffice1() const;
- const QString &getOffice2() const;
- const QString &getAddress() const;
+ const TQString &getOffice1() const;
+ const TQString &getOffice2() const;
+ const TQString &getAddress() const;
//--BSD
- void setOffice(const QString &data);
- void setWorkPhone(const QString &data);
- void setHomePhone(const QString &data);
- void setClass(const QString &data);
+ void setOffice(const TQString &data);
+ void setWorkPhone(const TQString &data);
+ void setHomePhone(const TQString &data);
+ void setClass(const TQString &data);
//--BSD end
- void setOffice1(const QString &data);
- void setOffice2(const QString &data);
- void setAddress(const QString &data);
+ void setOffice1(const TQString &data);
+ void setOffice2(const TQString &data);
+ void setAddress(const TQString &data);
//shadow
- const QString &getSPwd() const;
+ const TQString &getSPwd() const;
time_t getExpire() const;
time_t getLastChange() const;
int getMin() const;
@@ -103,7 +103,7 @@ public:
int getInactive() const;
int getFlag() const;
- void setSPwd(const QString &data);
+ void setSPwd(const TQString &data);
void setLastChange(time_t data);
void setMin(int data);
void setMax(int data);
@@ -113,25 +113,25 @@ public:
void setFlag(int data);
//samba
- const QString &getLMPwd() const; // sam_lmpwd,
- const QString &getNTPwd() const; //sam_ntpwd,
- const QString &getLoginScript() const; //sam_loginscript,
- const QString &getProfilePath() const; // sam_profile,
- const QString &getHomeDrive() const; //sam_homedrive,
- const QString &getHomePath() const; //sam_homepath;
- const QString &getWorkstations() const; //sam_workstations
- const QString &getDomain() const; //sam_domain
+ const TQString &getLMPwd() const; // sam_lmpwd,
+ const TQString &getNTPwd() const; //sam_ntpwd,
+ const TQString &getLoginScript() const; //sam_loginscript,
+ const TQString &getProfilePath() const; // sam_profile,
+ const TQString &getHomeDrive() const; //sam_homedrive,
+ const TQString &getHomePath() const; //sam_homepath;
+ const TQString &getWorkstations() const; //sam_workstations
+ const TQString &getDomain() const; //sam_domain
const SID &getSID() const; //sid,
const SID &getPGSID() const; //pgroup_sid;
- void setLMPwd( const QString &data ); // sam_lmpwd,
- void setNTPwd( const QString &data ); //sam_ntpwd,
- void setLoginScript( const QString &data ); //sam_loginscript,
- void setProfilePath( const QString &data); // sam_profile,
- void setHomeDrive( const QString &data ); //sam_homedrive,
- void setHomePath( const QString &data ); //sam_homepath;
- void setWorkstations( const QString &data ); //sam_workstations
- void setDomain( const QString &data ); //sam_domain
+ void setLMPwd( const TQString &data ); // sam_lmpwd,
+ void setNTPwd( const TQString &data ); //sam_ntpwd,
+ void setLoginScript( const TQString &data ); //sam_loginscript,
+ void setProfilePath( const TQString &data); // sam_profile,
+ void setHomeDrive( const TQString &data ); //sam_homedrive,
+ void setHomePath( const TQString &data ); //sam_homepath;
+ void setWorkstations( const TQString &data ); //sam_workstations
+ void setDomain( const TQString &data ); //sam_domain
void setSID( const SID &data ); //sid,
void setPGSID( const SID &data ); //pgroup_sid;
@@ -152,7 +152,7 @@ protected:
friend class KUsers;
int createHome();
- int tryCreate(const QString &dir);
+ int tryCreate(const TQString &dir);
int createMailBox();
int copySkel();
@@ -161,7 +161,7 @@ protected:
int removeMailBox();
int removeProcesses();
- void copyDir(const QString &srcPath, const QString &dstPath);
+ void copyDir(const TQString &srcPath, const TQString &dstPath);
int caps;
QString
@@ -226,24 +226,24 @@ public:
Cap_Disable_POSIX = 32,
Cap_BSD = 64
};
- typedef QPtrListIterator<KUser> DelIt;
- typedef QPtrListIterator<KUser> AddIt;
- typedef QMapIterator<KUser*, KUser> ModIt;
+ typedef TQPtrListIterator<KUser> DelIt;
+ typedef TQPtrListIterator<KUser> AddIt;
+ typedef TQMapIterator<KUser*, KUser> ModIt;
- QPtrList<KUser> mDelSucc;
- QPtrList<KUser> mAddSucc;
- QMap<KUser*, KUser> mModSucc;
+ TQPtrList<KUser> mDelSucc;
+ TQPtrList<KUser> mAddSucc;
+ TQMap<KUser*, KUser> mModSucc;
KUsers(KUserPrefsBase *cfg);
virtual ~KUsers();
- KUser *lookup(const QString & name);
+ KUser *lookup(const TQString & name);
KUser *lookup(uid_t uid);
KUser *lookup_sam( const SID &sid );
- KUser *lookup_sam( const QString &sid );
+ KUser *lookup_sam( const TQString &sid );
KUser *lookup_sam( uint rid );
int getCaps() { return caps; }
- const QString &getDOMSID() const;
+ const TQString &getDOMSID() const;
KUser *first();
KUser *next();
@@ -274,7 +274,7 @@ public:
* Must be reimplemented in various backends. It should encode @param password
* into the appropriate fields in @param user.
*/
- virtual void createPassword( KUser *user, const QString &password ) = 0;
+ virtual void createPassword( KUser *user, const TQString &password ) = 0;
/**
* Must load the users from the storage backend.
*/
@@ -286,20 +286,20 @@ public:
virtual bool dbcommit() = 0;
protected:
- QPtrList<KUser> mUsers;
+ TQPtrList<KUser> mUsers;
int caps;
KUserPrefsBase *mCfg;
- QPtrList<KUser> mDel;
- QPtrList<KUser> mAdd;
- QMap<KUser*, KUser> mMod;
+ TQPtrList<KUser> mDel;
+ TQPtrList<KUser> mAdd;
+ TQMap<KUser*, KUser> mMod;
- QString domsid;
+ TQString domsid;
bool doCreate( KUser *user );
bool doDelete( KUser *user );
- void parseGecos( const char *gecos, QString &name,
- QString &field1, QString &field2, QString &field3 );
+ void parseGecos( const char *gecos, TQString &name,
+ TQString &field1, TQString &field2, TQString &field3 );
void fillGecos( KUser *user, const char *gecos );
};