allow opening parent/enclosing doc with native editor in reslist

This commit is contained in:
dockes
2009-11-06 11:33:32 +00:00
parent 8ae11e4125
commit 96dba3a3ee
13 changed files with 116 additions and 40 deletions
+5 -1
View File
@@ -44,6 +44,8 @@ using namespace std;
#include "wipedir.h"
#include "rclconfig.h"
#include "mh_html.h"
#include "fileudi.h"
#ifdef RCL_USE_XATTR
#include "pxattr.h"
#endif // RCL_USE_XATTR
@@ -85,7 +87,7 @@ void FileInterner::reapXAttrs(const string& path)
// This is used when the user wants to retrieve a search result doc's parent
// (ie message having a given attachment)
bool FileInterner::getEnclosing(const string &url, const string &ipath,
string &eurl, string &eipath)
string &eurl, string &eipath, string& udi)
{
eurl = url;
eipath = ipath;
@@ -98,6 +100,8 @@ bool FileInterner::getEnclosing(const string &url, const string &ipath,
} else {
eipath.erase();
}
make_udi(url_gpath(eurl), eipath, udi);
LOGDEB(("FileInterner::getEnclosing() after: [%s]\n", eipath.c_str()));
return true;
}
+1 -1
View File
@@ -53,7 +53,7 @@ class FileInterner {
* with Rcl::Db::addOrUpdate(). The latter is generally the enclosing file.
*/
static bool getEnclosing(const string &url, const string &ipath,
string &eurl, string &eipath);
string &eurl, string &eipath, string& udi);
/**
* Identify and possibly decompress file, create adequate
* handler. The mtype parameter is only set when the object is