conchan.h

Go to the documentation of this file.
00001 /*
00002  * conchan.h
00003  *
00004  * Console I/O channel class.
00005  *
00006  * Portable Windows Library
00007  *
00008  * Copyright (c) 1993-1998 Equivalence Pty. Ltd.
00009  *
00010  * The contents of this file are subject to the Mozilla Public License
00011  * Version 1.0 (the "License"); you may not use this file except in
00012  * compliance with the License. You may obtain a copy of the License at
00013  * http://www.mozilla.org/MPL/
00014  *
00015  * Software distributed under the License is distributed on an "AS IS"
00016  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00017  * the License for the specific language governing rights and limitations
00018  * under the License.
00019  *
00020  * The Original Code is Portable Windows Library.
00021  *
00022  * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
00023  *
00024  * Portions are Copyright (C) 1993 Free Software Foundation, Inc.
00025  * All Rights Reserved.
00026  *
00027  * Contributor(s): ______________________________________.
00028  *
00029  * $Revision: 24160 $
00030  * $Author: rjongbloed $
00031  * $Date: 2010-03-29 02:09:03 -0500 (Mon, 29 Mar 2010) $
00032  */
00033 
00034 #ifndef PTLIB_CONSOLECHANNEL_H
00035 #define PTLIB_CONSOLECHANNEL_H
00036 
00037 #ifdef P_USE_PRAGMA
00038 #pragma interface
00039 #endif
00040 
00042 // Console Channel
00043 
00046 class PConsoleChannel : public PChannel
00047 {
00048   PCLASSINFO(PConsoleChannel, PChannel);
00049 
00050   public:
00051     enum ConsoleType {
00052       StandardInput,
00053       StandardOutput,
00054       StandardError
00055     };
00056 
00059 
00060     PConsoleChannel();
00061 
00063     PConsoleChannel(
00064       ConsoleType type  
00065     );
00067 
00077     virtual bool SetLocalEcho(
00078       bool localEcho
00079     );
00081 
00088     virtual PBoolean Open(
00089       ConsoleType type  
00090     );
00092 
00093 
00094 // Include platform dependent part of class
00095 #ifdef _WIN32
00096 #include "msos/ptlib/conchan.h"
00097 #else
00098 #include "unix/ptlib/conchan.h"
00099 #endif
00100 
00101 };
00102 
00103 
00104 #endif // PTLIB_CONSOLECHANNEL_H
00105 
00106 
00107 // End Of File ///////////////////////////////////////////////////////////////

Generated on Fri Oct 14 01:44:09 2011 for PTLib by  doxygen 1.4.7