summaryrefslogtreecommitdiffstats
path: root/tdeio/tests/kscantest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeio/tests/kscantest.cpp')
-rw-r--r--tdeio/tests/kscantest.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/tdeio/tests/kscantest.cpp b/tdeio/tests/kscantest.cpp
new file mode 100644
index 000000000..d37f2eb97
--- /dev/null
+++ b/tdeio/tests/kscantest.cpp
@@ -0,0 +1,16 @@
+#include <tdeapplication.h>
+#include <kscan.h>
+
+int main( int argc, char **argv )
+{
+ TDEApplication app( argc, argv, "kscantest" );
+ KScanDialog *dlg = KScanDialog::getScanDialog();
+ if ( !dlg ) {
+ tqDebug("*** EEK, no Scan-service available, aborting!");
+ return 0;
+ }
+
+ dlg->show();
+
+ return app.exec();
+}