diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-07-22 01:21:51 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-07-22 01:23:57 +0200 |
commit | 763b290f0123855a1d9e8fde0583297e0ce5941b (patch) | |
tree | 9f7530fc18be8ce9efd93117567146b0dccdc063 /tdepasswd/kcm/chfnprocess.h | |
parent | 08390bda6cc11917a625253a98e48da9b0aac8e6 (diff) | |
download | tdebase-763b290f0123855a1d9e8fde0583297e0ce5941b.tar.gz tdebase-763b290f0123855a1d9e8fde0583297e0ce5941b.zip |
Rename kdepasswd -> tdepasswd
Diffstat (limited to 'tdepasswd/kcm/chfnprocess.h')
-rw-r--r-- | tdepasswd/kcm/chfnprocess.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tdepasswd/kcm/chfnprocess.h b/tdepasswd/kcm/chfnprocess.h new file mode 100644 index 000000000..d29ccc538 --- /dev/null +++ b/tdepasswd/kcm/chfnprocess.h @@ -0,0 +1,33 @@ +/*************************************************************************** + * Copyright 2003 Braden MacDonald <bradenm_k@shaw.ca> * + * Copyright 2003 Ravikiran Rajagopal <ravi@ee.eng.ohio-state.edu> * + * * + * 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 <tqcstring.h> +#include <tdesu/process.h> + +class ChfnProcess : public PtyProcess +{ +public: + + enum Errors { ChfnNotFound=1, PasswordError=2, MiscError=3 }; + + int exec(const char *pass, const char *name); + + TQCString error() { return m_Error; } + +private: + int ConverseChfn(const char *pass); + + TQCString m_Error; +}; + +#endif |