summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/link.h
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@nokia.com>2012-05-30 18:29:54 +0200
committerTim Jenssen <tim.jenssen@nokia.com>2012-05-30 18:43:01 +0200
commitf9a37cb9585e8a28843f8b234497a22da6f2bcff (patch)
treecdaaf6e4352004b78bcdb82217119794c3024bec /src/libs/installer/link.h
parentcedcc6eb4bc7c57c7cb5da06de121021faa82ba9 (diff)
QFileInfo(m_path).readLink(); can't read junctions
- in older code there was a try to resolve junctions like symbolic links, but this broke many other code - we copied the read windows symlink code from the private qt file and made small adjustmenst to be able to call it directly in targetPath() method - and changed the isValid behaviour, because we want to create links to locations which are created later - and it is creating the path to the link on every OS Change-Id: Id11839bbf2ecfde410982833d10f96d36fe1cab7 Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com>
Diffstat (limited to 'src/libs/installer/link.h')
-rw-r--r--src/libs/installer/link.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/installer/link.h b/src/libs/installer/link.h
index bb843b62f..f54bfecae 100644
--- a/src/libs/installer/link.h
+++ b/src/libs/installer/link.h
@@ -39,9 +39,10 @@ class Link
{
public:
Link(const QString &path);
- static Link create(const QString &linkPath, const QString &targetPath);
+ static Link create(const QString &link, const QString &targetPath);
QString targetPath() const;
bool targetExists();
+ bool exists();
bool isValid();
bool remove();