Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>2006-04-06 21:55:04 +0400
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>2006-04-06 21:55:04 +0400
commitf83fac0c1325e2af90558e9b3e469012dcde31fb (patch)
treeeace6c7242e53d9325dbae546c43eb67a6c3d4e1 /mcs/class/System/System.IO.Ports/SerialPort.cs
parente0535364e5a397346a63475df2af08f43827a953 (diff)
2006-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* SerialPort.cs: * SerialPortStream.cs: Add signals managing. * SerialSignal.cs: New. svn path=/trunk/mcs/; revision=59130
Diffstat (limited to 'mcs/class/System/System.IO.Ports/SerialPort.cs')
-rw-r--r--mcs/class/System/System.IO.Ports/SerialPort.cs24
1 files changed, 17 insertions, 7 deletions
diff --git a/mcs/class/System/System.IO.Ports/SerialPort.cs b/mcs/class/System/System.IO.Ports/SerialPort.cs
index 6a809b721d8..c69e29fd961 100644
--- a/mcs/class/System/System.IO.Ports/SerialPort.cs
+++ b/mcs/class/System/System.IO.Ports/SerialPort.cs
@@ -141,14 +141,14 @@ namespace System.IO.Ports
public bool CDHolding {
get {
CheckOpen ();
- throw new NotImplementedException ();
+ return stream.GetSignal (SerialSignal.Cd);
}
}
public bool CtsHolding {
get {
CheckOpen ();
- throw new NotImplementedException ();
+ return stream.GetSignal (SerialSignal.Cts);
}
}
@@ -180,16 +180,21 @@ namespace System.IO.Ports
public bool DsrHolding {
get {
CheckOpen ();
- throw new NotImplementedException ();
+ return stream.GetSignal (SerialSignal.Dsr);
}
}
public bool DtrEnable {
get {
- throw new NotImplementedException ();
+ return dtr_enable;
}
set {
- throw new NotImplementedException ();
+ if (value == dtr_enable)
+ return;
+ if (isOpen)
+ stream.SetSignal (SerialSignal.Dtr, value);
+
+ dtr_enable = value;
}
}
@@ -320,10 +325,15 @@ namespace System.IO.Ports
public bool RtsEnable {
get {
- throw new NotImplementedException ();
+ return rts_enable;
}
set {
- throw new NotImplementedException ();
+ if (value == rts_enable)
+ return;
+ if (isOpen)
+ stream.SetSignal (SerialSignal.Rts, value);
+
+ rts_enable = value;
}
}