1 #include <kapplication.h>
3 #include "dccManager.h"
7 class Timer
: public QObject
10 Timer( dccManager
*view
)
13 m_it
= m_view
->newSendItem("test", "boren", dccItem::dccOffer
, 123523);
14 m_view
->newSendItem("test2", "boren", dccItem::dccOffer
, 123523);
15 m_view
->newSendItem("test3", "boren", dccItem::dccOffer
, 123523);
16 m_view
->newGetItem("test4", "boren", dccItem::dccOffer
, 123523);
17 m_view
->newGetItem("test4", "boren", dccItem::dccOffer
, 123523);
18 m_view
->newGetItem("test4", "boren", dccItem::dccOffer
, 123523);
22 void timerEvent( QTimerEvent
* )
24 m_it
->changeStatus(dccItem::dccSending
);
26 m_it
->setReceivedBytes(bytes
);
36 int main(int argc
, char **argv
){
37 KApplication
a(argc
, argv
, "dccMgrTest" );
39 dccManager
kst(0, "toplevel");
42 a
.setMainWidget(&kst
);