• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdesu
 

tdesu

  • tdesu
su.h
1/*
2 *
3 * $Id$
4 *
5 * This file is part of the KDE project, module tdesu.
6 * Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
7 *
8 * This is free software; you can use this library under the GNU Library
9 * General Public License, version 2. See the file "COPYING.LIB" for the
10 * exact licensing terms.
11 */
12
13#ifndef __SU_h_Included__
14#define __SU_h_Included__
15
16#include <tqcstring.h>
17
18#include <tdelibs_export.h>
19
20#include "stub.h"
21
26class TDESU_EXPORT SuProcess: public StubProcess
27{
28public:
29 SuProcess(const TQCString &user=0, const TQCString &command=0);
30 ~SuProcess();
31
32 enum Errors { SuNotFound=1, SuNotAllowed, SuIncorrectPassword };
33
37 enum checkMode { NoCheck=0, Install=1, NeedPassword=2 } ;
38 int exec(const char *password, int check=NoCheck);
39
44 int checkInstall(const char *password);
45
49 int checkNeedPassword();
50
51private:
52 enum SuErrors { error=-1, ok=0, killme=1, notauthorized=2 } ;
53 int ConverseSU(const char *password);
54
55protected:
56 virtual void virtual_hook( int id, void* data );
57private:
58 class SuProcessPrivate;
59 SuProcessPrivate *d;
60 TQString superUserCommand;
61};
62
63#endif
PtyProcess::exec
int exec(const TQCString &command, const QCStringList &args)
Forks off and execute a command.
Definition: process.cpp:324
StubProcess
Chat with tdesu_stub.
Definition: stub.h:33
SuProcess
Executes a command under elevated privileges, using su.
Definition: su.h:27
SuProcess::checkMode
checkMode
Executes the command.
Definition: su.h:37

tdesu

Skip menu "tdesu"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdesu

Skip menu "tdesu"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdesu by doxygen 1.9.4
This website is maintained by Timothy Pearson.