mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
613f84225c
svn path=/trunk/KDE/kdebase/apps/; revision=720106
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
/***************************************************************************
|
|
* 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 <QtCore/QByteRef>
|
|
#include <kdesu/process.h>
|
|
|
|
class ChfnProcess : public KDESu::PtyProcess
|
|
{
|
|
public:
|
|
|
|
enum Errors { ChfnNotFound=1, PasswordError=2, MiscError=3 };
|
|
|
|
int exec(const char *pass, const char *name);
|
|
|
|
QByteArray error() { return m_Error; }
|
|
|
|
private:
|
|
int ConverseChfn(const char *pass);
|
|
|
|
QByteArray m_Error;
|
|
};
|
|
|
|
#endif
|