From 763b290f0123855a1d9e8fde0583297e0ce5941b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 22 Jul 2013 01:21:51 +0200 Subject: Rename kdepasswd -> tdepasswd --- tdepasswd/kcm/chfnprocess.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tdepasswd/kcm/chfnprocess.h (limited to 'tdepasswd/kcm/chfnprocess.h') 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 * + * Copyright 2003 Ravikiran Rajagopal * + * * + * 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 +#include + +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 -- cgit v1.2.1