aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd/channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'ncpd/channel.h')
-rw-r--r--ncpd/channel.h46
1 files changed, 26 insertions, 20 deletions
diff --git a/ncpd/channel.h b/ncpd/channel.h
index b71e248..4442088 100644
--- a/ncpd/channel.h
+++ b/ncpd/channel.h
@@ -9,26 +9,32 @@ class ncp;
class bufferStore;
class channel {
-public:
- channel(ncp *ncpController);
- void newNcpController(ncp *ncpController);
-
- void setNcpChannel(int chan);
- void ncpSend(bufferStore &a);
- virtual void ncpDataCallback(bufferStore &a) = NULL;
- virtual const char *getNcpConnectName() = NULL;
- void ncpConnect();
- virtual void ncpConnectAck() = NULL;
- virtual void ncpConnectTerminate() = NULL;
- void ncpDisconnect();
-
- // The following two calls are used for destructing an instance
- virtual bool terminate(); // Mainloop will terminate this class if true
- void terminateWhenAsked();
-private:
- ncp *ncpController;
- bool _terminate;
- int ncpChannel;
+ public:
+ channel(ncp *ncpController);
+ void newNcpController(ncp *ncpController);
+
+ void setNcpChannel(int chan);
+ void ncpSend(bufferStore &a);
+ void setVerbose(short int _verbose);
+ short int getVerbose();
+ virtual void ncpDataCallback(bufferStore &a) = NULL;
+ virtual const char *getNcpConnectName() = NULL;
+ void ncpConnect();
+ virtual void ncpConnectAck() = NULL;
+ virtual void ncpConnectTerminate() = NULL;
+ void ncpDisconnect();
+
+ // The following two calls are used for destructing an instance
+ virtual bool terminate(); // Mainloop will terminate this class if true
+ void terminateWhenAsked();
+
+ protected:
+ short int verbose;
+
+ private:
+ ncp *ncpController;
+ bool _terminate;
+ int ncpChannel;
};
#endif