Diffstat (limited to 'noncore/apps/opie-console/io_serial.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/io_serial.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/io_serial.cpp b/noncore/apps/opie-console/io_serial.cpp index e6d1688..0540d9e 100644 --- a/noncore/apps/opie-console/io_serial.cpp +++ b/noncore/apps/opie-console/io_serial.cpp | |||
@@ -204,3 +204,25 @@ QBitArray IOSerial::supports()const { | |||
204 | bool IOSerial::isConnected() { | 204 | bool IOSerial::isConnected() { |
205 | return m_connected; | 205 | return m_connected; |
206 | } | 206 | } |
207 | |||
208 | /* | ||
209 | * this is used to give the | ||
210 | * class below IOSerial | ||
211 | * the possibility of | ||
212 | * exclusive usage | ||
213 | */ | ||
214 | void IOSerial::internDetach() { | ||
215 | if (m_read ) | ||
216 | disconnect(m_read, SIGNAL(activated(int)), this, SLOT(dataArrived())); | ||
217 | if (m_error ) | ||
218 | disconnect(m_error, SIGNAL(activated(int)), this, SLOT(errorOccured())); | ||
219 | } | ||
220 | /* | ||
221 | * give power back | ||
222 | */ | ||
223 | void IOSerial::internAttach() { | ||
224 | if (m_read ) | ||
225 | connect(m_read, SIGNAL(activated(int)), this, SLOT(dataArrived())); | ||
226 | if (m_error ) | ||
227 | connect(m_error, SIGNAL(activated(int)), this, SLOT(errorOccured())); | ||
228 | } | ||