author | zecke <zecke> | 2004-03-14 17:00:46 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-14 17:00:46 (UTC) |
commit | 52169e2469a1edcca986e9f0404c3ca815d5833b (patch) (side-by-side diff) | |
tree | 9c6651125f29fe63df33fe56b352d3288b2ea8df /libopie2/opienet | |
parent | 59106c8ffcf25181925281c519a2b49d6835ef9e (diff) | |
download | opie-52169e2469a1edcca986e9f0404c3ca815d5833b.zip opie-52169e2469a1edcca986e9f0404c3ca815d5833b.tar.gz opie-52169e2469a1edcca986e9f0404c3ca815d5833b.tar.bz2 |
Change Signature of Signals to obey namespace
Make example compile
-rw-r--r-- | libopie2/opienet/opcap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opienet/opcap.h b/libopie2/opienet/opcap.h index dc609a3..72a78de 100644 --- a/libopie2/opienet/opcap.h +++ b/libopie2/opienet/opcap.h @@ -653,69 +653,69 @@ class OPacketCapturer : public QObject * @returns the next @ref OPacket from the packet capturer. * @note If blocking mode is true then this call might block. */ OPacket* next(); /** * @returns the next @ref OPacket from the packet capturer, if * one arrives within @a time milliseconds. */ OPacket* next( int time ); /** * Open the packet capturer to capture packets in live-mode from @a interface. */ bool open( const QString& interface ); /** * Open the packet capturer to capture packets in offline-mode from @a file. */ bool open( const QFile& file ); /** * Open a prerecorded tcpdump compatible capture file for use with @ref dump() */ bool openDumpFile( const QString& filename ); /** * @returns true if the packet capturer is open */ bool isOpen() const; /** * @returns the snapshot length of this packet capturer */ int snapShot() const; /** * @returns true if the input capture file has a different byte-order * than the byte-order of the running system. */ bool swapped() const; /** * @returns the libpcap version string used to write the input capture file. */ QString version() const; /** * @returns the packet statistic database. * @see QMap */ const QMap<QString,int>& statistics() const; signals: /** * This signal is emitted, when a packet has been received. */ - void receivedPacket( OPacket* ); + void receivedPacket( Opie::Net::OPacket* ); protected slots: void readyToReceive(); protected: QString _name; // devicename bool _open; // check this before doing pcap calls pcap_t* _pch; // pcap library handle pcap_dumper_t* _pcd; // pcap dumper handle QSocketNotifier* _sn; // socket notifier for main loop mutable char _errbuf[PCAP_ERRBUF_SIZE]; // holds error strings from libpcap QMap<QString, int> _stats; // statistics; class Private; // Private Forward declaration Private *d; // if we need to add data }; } } #endif // OPCAP_H |