You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.0 KiB
34 lines
1.0 KiB
15 years ago
|
/***************************************************************************
|
||
|
* 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
|
||
|
|
||
15 years ago
|
#include <tqcstring.h>
|
||
13 years ago
|
#include <tdesu/process.h>
|
||
15 years ago
|
|
||
|
class ChfnProcess : public PtyProcess
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
enum Errors { ChfnNotFound=1, PasswordError=2, MiscError=3 };
|
||
|
|
||
|
int exec(const char *pass, const char *name);
|
||
|
|
||
15 years ago
|
TQCString error() { return m_Error; }
|
||
15 years ago
|
|
||
|
private:
|
||
|
int ConverseChfn(const char *pass);
|
||
|
|
||
15 years ago
|
TQCString m_Error;
|
||
15 years ago
|
};
|
||
|
|
||
|
#endif
|