2
This class can wait for an input by the user
3
Copyright (C) 1998 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
15
#ifndef __INPUTINTERFACE_H
16
#define __INPUTINTERFACE_H
31
// uncomment this for debugging the input stream
32
// (written to file instream.dbg)
33
//#define _DEBUG_INPUT
35
#define _TIMEOUT_MS 2000
39
class InputInterface {
41
int currentCommandNumber;
46
MultiReader* multiReader;
57
int addFileDescriptor(int fd);
58
void removeFileDescriptor(int fd);
59
int write(int fd,const char* txt);
62
waits until a complete Line is entered
67
returns true if a complete new InputLine is avaiable
72
int getCurrentCommandNumber();
74
void increaseCurrentCommandNumber();
88
void setProtocolSyntax(int proto);
89
void addInputLine(struct Buffer* buffer);
92
void makeValidLine(char* line);
93
void insertYafScript(ifstream* stream);