summaryrefslogtreecommitdiff
path: root/core/pim/osearch/applnkitem.cpp
authortille <tille>2003-05-12 14:31:12 (UTC)
committer tille <tille>2003-05-12 14:31:12 (UTC)
commitca02db5ebfc5e44c3b216c12757683bac246ba23 (patch) (unidiff)
tree76ac70e5ae3a434b195d2eb42885357984f0a1fd /core/pim/osearch/applnkitem.cpp
parent0529ba8905f07e3eafaa36920e13b8619b09d5b1 (diff)
downloadopie-ca02db5ebfc5e44c3b216c12757683bac246ba23.zip
opie-ca02db5ebfc5e44c3b216c12757683bac246ba23.tar.gz
opie-ca02db5ebfc5e44c3b216c12757683bac246ba23.tar.bz2
add open in filemanager
Diffstat (limited to 'core/pim/osearch/applnkitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/applnkitem.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/pim/osearch/applnkitem.cpp b/core/pim/osearch/applnkitem.cpp
index 2152da4..1e7b1fb 100644
--- a/core/pim/osearch/applnkitem.cpp
+++ b/core/pim/osearch/applnkitem.cpp
@@ -13,6 +13,8 @@
13#include "applnkitem.h" 13#include "applnkitem.h"
14 14
15#include <qpe/applnk.h> 15#include <qpe/applnk.h>
16#include <qfileinfo.h>
17#include <qpe/qcopenvelope_qws.h>
16 18
17AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app) 19AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app)
18 : ResultItem(parent) 20 : ResultItem(parent)
@@ -40,11 +42,20 @@ void AppLnkItem::action( int act )
40{ 42{
41 if (!_app->isValid()) qDebug("INVALID"); 43 if (!_app->isValid()) qDebug("INVALID");
42 if (act == 0) _app->execute(); 44 if (act == 0) _app->execute();
45 else if (act == 1){
46 QFileInfo file( _app->file() );
47 qDebug("opening %s in filemanager", file.dirPath().latin1());
48 QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)");
49 e << file.dirPath();
50 // QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)");
51 // e << _app->file();
52 }
43} 53}
44 54
45QIntDict<QString> AppLnkItem::actions() 55QIntDict<QString> AppLnkItem::actions()
46{ 56{
47 QIntDict<QString> result; 57 QIntDict<QString> result;
48 result.insert( 0, new QString( QObject::tr("execute") ) ); 58 result.insert( 0, new QString( QObject::tr("execute") ) );
59 result.insert( 1, new QString( QObject::tr("open in filemanager") ) );
49 return result; 60 return result;
50} 61}