add more spacing
[personal-kdebase.git] / apps / kdepasswd / kcm / chfnprocess.h
blobc9f0700f51d0a749b43c75840c43b46ccadb538a
1 /***************************************************************************
2 * Copyright 2003 Braden MacDonald <bradenm_k@shaw.ca> *
3 * Copyright 2003 Ravikiran Rajagopal <ravi@ee.eng.ohio-state.edu> *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License (version 2) as *
7 * published by the Free Software Foundation. *
8 * *
9 ***************************************************************************/
11 #ifndef CHFNPROC_H
12 #define CHFNPROC_H
14 #include <QtCore/QByteRef>
15 #include <kdesu/process.h>
17 class ChfnProcess : public KDESu::PtyProcess
19 public:
21 enum Errors { ChfnNotFound=1, PasswordError=2, MiscError=3 };
23 int exec(const char *pass, const char *name);
25 QByteArray error() { return m_Error; }
27 private:
28 int ConverseChfn(const char *pass);
30 QByteArray m_Error;
33 #endif