summaryrefslogtreecommitdiff
path: root/core/obex/receiver.h
authorkergoth <kergoth>2003-08-09 17:29:36 (UTC)
committer kergoth <kergoth>2003-08-09 17:29:36 (UTC)
commita0bab0e281fbaf6f6ebbb1a48e5c06426bfbbb93 (patch) (side-by-side diff)
tree5ce78e1a5dedd31b7851d53bf9f072bd44edd1b0 /core/obex/receiver.h
parenta7e015198a8c5ad3b6e144a9032b059086253e00 (diff)
downloadopie-a0bab0e281fbaf6f6ebbb1a48e5c06426bfbbb93.zip
opie-a0bab0e281fbaf6f6ebbb1a48e5c06426bfbbb93.tar.gz
opie-a0bab0e281fbaf6f6ebbb1a48e5c06426bfbbb93.tar.bz2
Merge from BRANCH_1_0
Diffstat (limited to 'core/obex/receiver.h') (more/less context) (show whitespace changes)
-rw-r--r--core/obex/receiver.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/obex/receiver.h b/core/obex/receiver.h
index 5b20146..e1d54df 100644
--- a/core/obex/receiver.h
+++ b/core/obex/receiver.h
@@ -1,50 +1,53 @@
#ifndef OPIE_OBEX_RECEIVER_H
#define OPIE_OBEX_RECEIVER_H
#include <qobject.h>
#include <qvbox.h>
#include <qstring.h>
class QLabel;
class QTextView;
namespace OpieObex {
class Obex;
class OtherHandler;
class Receiver : public QObject {
Q_OBJECT
public:
enum { Datebook , AddressBook, Other };
Receiver();
~Receiver();
private:
void handleAddr(const QString& );
void handleDateTodo(const QString& );
void handleOther(const QString& );
- int checkFile( const QString& file );
+ /* will alter the file name */
+ int checkFile( QString& file );
bool testDateTodo(const QString& file);
bool testAddressbook(const QString& file);
+ /* called by checkFile */
+ void tidyUp( QString& file, const QString& ending );
private slots:
void slotReceived( const QString& );
private:
Obex* m_obex;
};
class OtherHandler : public QVBox {
Q_OBJECT
public:
OtherHandler();
~OtherHandler();
void handle( const QString& file );
private slots:
void accept();
void deny();
private:
QString targetName( const QString& file );
void copy( const QString& src, const QString& dest );
QLabel* m_na;
QTextView* m_view;
QString m_file;