summaryrefslogtreecommitdiffstats
path: root/tdepasswd/kcm/chfnprocess.h
blob: d29ccc5388bc42261ef9440c77d68812ab41cf80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 <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