author | zecke <zecke> | 2003-02-23 12:38:48 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-02-23 12:38:48 (UTC) |
commit | a566d1696216eead6a3e4ed8274ca6c04e296165 (patch) (side-by-side diff) | |
tree | 0d4fb0428db82b2b8e355fdd5af644b92a1709a6 | |
parent | 2678456bf180bcf0ab7cfa112f3c723cf1d87c84 (diff) | |
download | opie-a566d1696216eead6a3e4ed8274ca6c04e296165.zip opie-a566d1696216eead6a3e4ed8274ca6c04e296165.tar.gz opie-a566d1696216eead6a3e4ed8274ca6c04e296165.tar.bz2 |
make mickeyl happy
thanks for spotting it
-rw-r--r-- | libopie/pim/opimmainwindow.cpp | 5 | ||||
-rw-r--r-- | libopie2/opiepim/ui/opimmainwindow.cpp | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/libopie/pim/opimmainwindow.cpp b/libopie/pim/opimmainwindow.cpp index 7e57f3a..d1eec19 100644 --- a/libopie/pim/opimmainwindow.cpp +++ b/libopie/pim/opimmainwindow.cpp @@ -20,69 +20,68 @@ OPimMainWindow::OPimMainWindow( const QString& service, QWidget* parent, /* connect flush and reload */ connect(qApp, SIGNAL(flush() ), this, SLOT(flush() ) ); connect(qApp, SIGNAL(reload() ), this, SLOT(reload() ) ); } OPimMainWindow::~OPimMainWindow() { delete m_channel; } QCopChannel* OPimMainWindow::channel() { return m_channel; } void OPimMainWindow::doSetDocument( const QString& ) { } void OPimMainWindow::appMessage( const QCString& cmd, const QByteArray& array ) { /* * create demands to create * a new record... */ QDataStream stream(array, IO_ReadOnly); if ( cmd == "create()" ) { int uid = create(); QCopEnvelope e(m_str, "created(int)" ); e << uid; }else if ( cmd == "remove(int)" ) { int uid; stream >> uid; bool rem = remove( uid ); QCopEnvelope e(m_str, "removed(bool)" ); e << rem; - }else if ( cmd == "beam(int,int)" ) { + }else if ( cmd == "beam(int)" ) { int uid, trans; stream >> uid; - stream >> trans; - beam( uid, trans ); + beam( uid); }else if ( cmd == "show(int)" ) { int uid; stream >> uid; show( uid ); }else if ( cmd == "edit(int)" ) { int uid; stream >> uid; edit( uid ); }else if ( cmd == "add(int,QByteArray)" ) { int rtti; QByteArray array; stream >> rtti; stream >> array; m_fallBack = record(rtti, array ); if (!m_fallBack) return; add( *m_fallBack ); delete m_fallBack; } } /* implement the url scripting here */ void OPimMainWindow::setDocument( const QString& str) { doSetDocument( str ); } /* * we now try to get the array demarshalled * check if the rtti matches this one */ OPimRecord* OPimMainWindow::record( int rtti, const QByteArray& array ) { if ( service() != rtti ) return 0l; OPimRecord* record = OPimResolver::self()->record( rtti ); diff --git a/libopie2/opiepim/ui/opimmainwindow.cpp b/libopie2/opiepim/ui/opimmainwindow.cpp index 7e57f3a..d1eec19 100644 --- a/libopie2/opiepim/ui/opimmainwindow.cpp +++ b/libopie2/opiepim/ui/opimmainwindow.cpp @@ -20,69 +20,68 @@ OPimMainWindow::OPimMainWindow( const QString& service, QWidget* parent, /* connect flush and reload */ connect(qApp, SIGNAL(flush() ), this, SLOT(flush() ) ); connect(qApp, SIGNAL(reload() ), this, SLOT(reload() ) ); } OPimMainWindow::~OPimMainWindow() { delete m_channel; } QCopChannel* OPimMainWindow::channel() { return m_channel; } void OPimMainWindow::doSetDocument( const QString& ) { } void OPimMainWindow::appMessage( const QCString& cmd, const QByteArray& array ) { /* * create demands to create * a new record... */ QDataStream stream(array, IO_ReadOnly); if ( cmd == "create()" ) { int uid = create(); QCopEnvelope e(m_str, "created(int)" ); e << uid; }else if ( cmd == "remove(int)" ) { int uid; stream >> uid; bool rem = remove( uid ); QCopEnvelope e(m_str, "removed(bool)" ); e << rem; - }else if ( cmd == "beam(int,int)" ) { + }else if ( cmd == "beam(int)" ) { int uid, trans; stream >> uid; - stream >> trans; - beam( uid, trans ); + beam( uid); }else if ( cmd == "show(int)" ) { int uid; stream >> uid; show( uid ); }else if ( cmd == "edit(int)" ) { int uid; stream >> uid; edit( uid ); }else if ( cmd == "add(int,QByteArray)" ) { int rtti; QByteArray array; stream >> rtti; stream >> array; m_fallBack = record(rtti, array ); if (!m_fallBack) return; add( *m_fallBack ); delete m_fallBack; } } /* implement the url scripting here */ void OPimMainWindow::setDocument( const QString& str) { doSetDocument( str ); } /* * we now try to get the array demarshalled * check if the rtti matches this one */ OPimRecord* OPimMainWindow::record( int rtti, const QByteArray& array ) { if ( service() != rtti ) return 0l; OPimRecord* record = OPimResolver::self()->record( rtti ); |