Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

btobex.h

Go to the documentation of this file.
00001 
00002 
00003 #ifndef OpieBtObex_H
00004 #define OpieBtObex_H
00005 
00006 #include <qobject.h>
00007 
00008 namespace Opie {namespace Core {class OProcess;}}
00009 class QCopChannel;
00010 namespace OpieObex {
00011   // Maybe this should be derved from Obex.
00012   class BtObex : public QObject {
00013       Q_OBJECT
00014   public:
00018       BtObex( QObject *parent, const char* name);
00022       ~BtObex();
00023 
00028       void receive();
00029       void send( const QString&, const QString& );
00030       void setReceiveEnabled( bool = false );
00031   signals:
00032 
00037       void receivedFile( const QString& path);
00042       void error( int );
00046       void currentTry(unsigned int);
00050       void sent(bool);
00051       void done(bool);
00052 
00053   private:
00054       uint m_count;
00055       QString m_file;
00056       QString m_outp;
00057       QString m_bdaddr;
00058       Opie::Core::OProcess *m_send;
00059       Opie::Core::OProcess *m_rec;
00060       bool m_receive : 1;
00061       void shutDownReceive();
00062 
00063 private slots:
00064 
00065       // the process exited
00066       void slotExited(Opie::Core::OProcess* proc) ;
00067       void slotStdOut(Opie::Core::OProcess*, char*, int);
00068       void slotError();
00069 
00070   private:
00071       void sendNow();
00072       QString parseOut();
00073       void received();
00074       void sendEnd();
00075 
00076   };
00077 };
00078 
00079 
00080 #endif

Generated on Sat Nov 5 16:15:45 2005 for OPIE by  doxygen 1.4.2