summaryrefslogtreecommitdiff
path: root/core/apps/taboapp
authormickeyl <mickeyl>2004-04-05 13:30:36 (UTC)
committer mickeyl <mickeyl>2004-04-05 13:30:36 (UTC)
commit743adf3ed3032feb15e71002613a4643d059aa09 (patch) (unidiff)
treeda8c0549515f694775a1cd169cdc5abe615a3847 /core/apps/taboapp
parentb136b4d55c810c35c54b18b435aa4172b7f6b9fe (diff)
downloadopie-743adf3ed3032feb15e71002613a4643d059aa09.zip
opie-743adf3ed3032feb15e71002613a4643d059aa09.tar.gz
opie-743adf3ed3032feb15e71002613a4643d059aa09.tar.bz2
convert helpbrowser, taboapp and textedit to Opie debugging framework
qcop and embeddedkonsole needs more work. the diagnostics part uses printf
Diffstat (limited to 'core/apps/taboapp') (more/less context) (show whitespace changes)
-rw-r--r--core/apps/taboapp/main.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/core/apps/taboapp/main.cpp b/core/apps/taboapp/main.cpp
index e46c71f..e43f118 100644
--- a/core/apps/taboapp/main.cpp
+++ b/core/apps/taboapp/main.cpp
@@ -1,10 +1,14 @@
1#include <qdir.h> 1/* OPIE */
2
3#include <qpe/qpeapplication.h>
4#include <qpe/qlibrary.h>
5#include <oappinterface.h> 2#include <oappinterface.h>
6#include <oappplugin.h> 3#include <oappplugin.h>
7 4#include <opie2/odebug.h>
8#include <opie2/otabwidget.h> 5#include <opie2/otabwidget.h>
6#include <qpe/qpeapplication.h>
7#include <qpe/qlibrary.h>
8using namespace Opie::Core;
9using namespace Opie::Ui;
10
11/* QT */
12#include <qdir.h>
9 13
10int main( int argc, char **argv ) 14int main( int argc, char **argv )
@@ -12,5 +16,5 @@ int main( int argc, char **argv )
12 QPEApplication a( argc, argv ); 16 QPEApplication a( argc, argv );
13 17
14 Opie::Ui::OTabWidget *tabwidget = new Opie::Ui::OTabWidget(0, "tab widget"); 18 OTabWidget *tabwidget = new OTabWidget(0, "tab widget");
15 19
16 QString path = QPEApplication::qpeDir() + "/plugins/app"; 20 QString path = QPEApplication::qpeDir() + "/plugins/app";
@@ -24,7 +28,7 @@ int main( int argc, char **argv )
24 QLibrary *lib = new QLibrary( path + "/" + *it ); 28 QLibrary *lib = new QLibrary( path + "/" + *it );
25 29
26 qDebug( "querying: %s", QString( path + "/" + *it ).latin1() ); 30 odebug << "querying: " << QString( path + "/" + *it ) << "" << oendl;
27 if ( lib->queryInterface( IID_OAppInterface, (QUnknownInterface**)&iface ) == QS_OK ) { 31 if ( lib->queryInterface( IID_OAppInterface, (QUnknownInterface**)&iface ) == QS_OK ) {
28 qDebug( "accepted: %s", QString( path + "/" + *it ).latin1() ); 32 odebug << "accepted: " << QString( path + "/" + *it ) << "" << oendl;
29 33
30 QList<QWidget> list = iface->widgets(); 34 QList<QWidget> list = iface->widgets();