-rw-r--r-- | core/obex/obexbase.cpp | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/core/obex/obexbase.cpp b/core/obex/obexbase.cpp new file mode 100644 index 0000000..8eda04e --- a/dev/null +++ b/core/obex/obexbase.cpp | |||
@@ -0,0 +1,74 @@ | |||
1 | /* | ||
2 | =. This file is part of the OPIE Project | ||
3 | .=l. Copyright (c) 2002 Maximilian Reiss <max.reiss@gmx.de> | ||
4 | .>+-= | ||
5 | _;:, .> :=|. This library is free software; you can | ||
6 | .> <, > . <= redistribute it and/or modify it under | ||
7 | :=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
8 | .="- .-=="i, .._ License as published by the Free Software | ||
9 | - . .-<_> .<> Foundation; version 2 of the License. | ||
10 | ._= =} : | ||
11 | .%+i> _;_. | ||
12 | .i_,=:_. -<s. This library is distributed in the hope that | ||
13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
14 | : .. .:, . . . without even the implied warranty of | ||
15 | =_ + =;=| MERCHANTABILITY or FITNESS FOR A | ||
16 | _.=:. : :=>: PARTICULAR PURPOSE. See the GNU | ||
17 | ..}^=.= = ; Library General Public License for more | ||
18 | ++= -. . .: details. | ||
19 | : = ...= . :.=- | ||
20 | -. .:....=;==+<; You should have received a copy of the GNU | ||
21 | -_. . . )=. = Library General Public License along with | ||
22 | -- :-= this library; see the file COPYING.LIB. | ||
23 | If not, write to the Free Software Foundation, | ||
24 | Inc., 59 Temple Place - Suite 330, | ||
25 | Boston, MA 02111-1307, USA. | ||
26 | |||
27 | */ | ||
28 | /* | ||
29 | * The basic class for OBEX manipulating classes implementation | ||
30 | */ | ||
31 | |||
32 | #include "obexbase.h" | ||
33 | |||
34 | /* OPIE */ | ||
35 | #include <opie2/oprocess.h> | ||
36 | #include <opie2/odebug.h> | ||
37 | |||
38 | using namespace OpieObex; | ||
39 | |||
40 | using namespace Opie::Core; | ||
41 | |||
42 | ObexBase::ObexBase(QObject *parent, const char* name) | ||
43 | : QObject(parent, name) | ||
44 | { | ||
45 | m_count = 0; | ||
46 | m_receive = false; | ||
47 | connect( this, SIGNAL(error(int) ), // for recovering to receive | ||
48 | SLOT(slotError() ) ); | ||
49 | connect( this, SIGNAL(sent(bool) ), | ||
50 | SLOT(slotError() ) ); | ||
51 | } | ||
52 | |||
53 | ObexBase::~ObexBase() { | ||
54 | } | ||
55 | |||
56 | void ObexBase::receive() { | ||
57 | m_receive = true; | ||
58 | m_outp = QString::null; | ||
59 | } | ||
60 | |||
61 | void ObexBase::send( const QString& fileName, const QString& bdaddr) { | ||
62 | // if currently receiving stop it send receive | ||
63 | m_count = 0; | ||
64 | m_file = fileName; | ||
65 | m_bdaddr = bdaddr; | ||
66 | } | ||
67 | |||
68 | void ObexBase::setReceiveEnabled(bool) { | ||
69 | } | ||
70 | |||
71 | void ObexBase::slotError() { | ||
72 | } | ||
73 | |||
74 | //eof | ||