KDESu::StubProcess Class
Chat with kdesu_stub. More...
- Header:
#include <KDESu/StubProcess> - CMake:
find_package(KF6 REQUIRED COMPONENTS Su)
target_link_libraries(mytarget PRIVATE KF6::Su) - Inherits: KDESu::PtyProcess
- Inherited By: KDESu::SshProcess and KDESu::SuProcess
List of all members, including inherited members
Public Types
Public Functions
- StubProcess()
- void setCommand(const QByteArray &command)
- void setPriority(int prio)
- void setScheduler(int sched)
- void setUser(const QByteArray &user)
- void setXOnly(bool xonly)
Protected Functions
Detailed Description
StubProcess extends PtyProcess with functionality to chat with kdesu_stub.
Member Type Documentation
enum StubProcess::Scheduler
Different schedulers. SchedNormal is the normal Unix timesharing scheduler, while SchedRealtime is a POSIX.1b realtime scheduler.
| Constant | |
|---|---|
KDESu::StubProcess::SchedNormal |
0 |
KDESu::StubProcess::SchedRealtime |
1 |
Member Function Documentation
StubProcess::StubProcess()
[protected] int StubProcess::converseStub(int check)
Exchange all parameters with kdesu_stub.
[virtual protected] QByteArray StubProcess::display()
This virtual function can be overloaded when special behavior is desired. By default, it returns the value returned by KCookie.
[virtual protected] QByteArray StubProcess::displayAuth()
See display.
void StubProcess::setCommand(const QByteArray &command)
Set the command.
void StubProcess::setPriority(int prio)
Set the priority of the process. The priority value must be between 0 and 100, 0 being the lowest priority. This value is mapped to the scheduler and system dependent priority range of the OS.
void StubProcess::setScheduler(int sched)
Set the scheduler type.
void StubProcess::setUser(const QByteArray &user)
Set the target user.
void StubProcess::setXOnly(bool xonly)
Set to "X only mode": Sycoca is not built and kdeinit is not launched.