summaryrefslogtreecommitdiff
authorzecke <zecke>2003-02-22 19:02:06 (UTC)
committer zecke <zecke>2003-02-22 19:02:06 (UTC)
commit00c146960fa7fd05dc56fac2a24b3d7968a4a772 (patch) (side-by-side diff)
tree11d7fd4630cce7422448c31bd26034718d90656e
parent7b04887e382227c80c8985495f01dad2b1890719 (diff)
downloadopie-00c146960fa7fd05dc56fac2a24b3d7968a4a772.zip
opie-00c146960fa7fd05dc56fac2a24b3d7968a4a772.tar.gz
opie-00c146960fa7fd05dc56fac2a24b3d7968a4a772.tar.bz2
shutup todolist while running
remove the transport thingie..
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/main.cpp2
-rw-r--r--core/pim/todo/mainwindow.cpp2
-rw-r--r--core/pim/todo/mainwindow.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/core/pim/todo/main.cpp b/core/pim/todo/main.cpp
index aeae794..58ed45c 100644
--- a/core/pim/todo/main.cpp
+++ b/core/pim/todo/main.cpp
@@ -22,25 +22,25 @@
#include <qdatetime.h>
#include <qpe/qpeapplication.h>
void myMessages( QtMsgType, const char* ) {
}
int main( int argc, char **argv )
{
-// qInstallMsgHandler( myMessages );
+ qInstallMsgHandler( myMessages );
QPEApplication a( argc, argv );
QTime time;
time.start();
Todo::MainWindow mw;
int t = time.elapsed();
qWarning("QTime %d", t/1000 );
mw.setCaption("Opie Todolist");
QObject::connect( &a, SIGNAL( flush() ), &mw, SLOT( slotFlush() ) );
QObject::connect( &a, SIGNAL( reload() ), &mw, SLOT( slotReload() ) );
a.showMainWidget(&mw);
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp
index d328558..7810285 100644
--- a/core/pim/todo/mainwindow.cpp
+++ b/core/pim/todo/mainwindow.cpp
@@ -771,25 +771,25 @@ int MainWindow::create() {
populateCategories();
}
raiseCurrentView( );
return uid;
}
/* delete it silently... */
bool MainWindow::remove( int uid ) {
if (m_syncing) return false;
return m_todoMgr.remove( uid );
}
-void MainWindow::beam( int uid, int ) {
+void MainWindow::beam( int uid) {
::unlink( beamfile );
OTodo todo = event( uid );
OTodoAccessVCal* cal = new OTodoAccessVCal(QString::fromLatin1(beamfile) );
OTodoAccess acc( cal );
acc.load();
acc.add( todo );
acc.save();
Ir* ir = new Ir(this );
connect(ir, SIGNAL(done(Ir*) ),
this, SLOT(beamDone(Ir*) ) );
ir->send( beamfile, todo.summary(), "text/x-vCalendar" );
}
diff --git a/core/pim/todo/mainwindow.h b/core/pim/todo/mainwindow.h
index f880505..434e969 100644
--- a/core/pim/todo/mainwindow.h
+++ b/core/pim/todo/mainwindow.h
@@ -182,20 +182,20 @@ private slots:
void slotBeam();
void beamDone( Ir* );
void slotShowDetails();
void slotShowDue( bool );
void slotReturnFromView(); // for TodoShow...
/* reimplementation from opimmainwindow */
protected slots:
void flush();
void reload();
int create();
bool remove( int uid );
- void beam(int uid, int transport = IrDa );
+ void beam(int uid);
void show( int uid );
void edit( int uid );
void add( const OPimRecord& );
};
};
#endif