summaryrefslogtreecommitdiffstats
path: root/kdepasswd/kcm/chfnprocess.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /kdepasswd/kcm/chfnprocess.h
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdepasswd/kcm/chfnprocess.h')
-rw-r--r--kdepasswd/kcm/chfnprocess.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/kdepasswd/kcm/chfnprocess.h b/kdepasswd/kcm/chfnprocess.h
new file mode 100644
index 000000000..f8bb4e0cf
--- /dev/null
+++ b/kdepasswd/kcm/chfnprocess.h
@@ -0,0 +1,33 @@
+/***************************************************************************
+ * Copyright 2003 Braden MacDonald <[email protected]> *
+ * Copyright 2003 Ravikiran Rajagopal <[email protected]> *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License (version 2) as *
+ * published by the Free Software Foundation. *
+ * *
+ ***************************************************************************/
+
+#ifndef CHFNPROC_H
+#define CHFNPROC_H
+
+#include <qcstring.h>
+#include <kdesu/process.h>
+
+class ChfnProcess : public PtyProcess
+{
+public:
+
+ enum Errors { ChfnNotFound=1, PasswordError=2, MiscError=3 };
+
+ int exec(const char *pass, const char *name);
+
+ QCString error() { return m_Error; }
+
+private:
+ int ConverseChfn(const char *pass);
+
+ QCString m_Error;
+};
+
+#endif