diff options
author | Tim Jenssen <tim.jenssen@nokia.com> | 2012-05-24 15:51:00 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@nokia.com> | 2012-05-25 09:03:36 +0200 |
commit | fb396036ccf3a0fd75d57c68e1e301b291245371 (patch) | |
tree | 4dbb1baedece7eda5ec2655a48380ce3f402dc1b /src/libs/installer/link.h | |
parent | 4fc262a5bd06ceae38fa33e2a7993937a43fe139 (diff) |
added new Link class and corresponding operation
- replace read junction link target code with already existing Qt code
Change-Id: I6642f19ceb9a907791987ced8e9eacc6ca4f2780
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Diffstat (limited to 'src/libs/installer/link.h')
-rw-r--r-- | src/libs/installer/link.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/libs/installer/link.h b/src/libs/installer/link.h new file mode 100644 index 000000000..bb843b62f --- /dev/null +++ b/src/libs/installer/link.h @@ -0,0 +1,52 @@ +/************************************************************************** +** +** This file is part of Installer Framework +** +** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** +** GNU Lesser General Public License Usage +** +** This file may be used under the terms of the GNU Lesser General Public +** License version 2.1 as published by the Free Software Foundation and +** appearing in the file LICENSE.LGPL included in the packaging of this file. +** Please review the following information to ensure the GNU Lesser General +** Public License version 2.1 requirements will be met: +** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** Other Usage +** +** Alternatively, this file may be used in accordance with the terms and +** conditions contained in a signed written agreement between you and Nokia. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +**************************************************************************/ + +#ifndef LINK_H +#define LINK_H + +#include <QString> + +class Link +{ +public: + Link(const QString &path); + static Link create(const QString &linkPath, const QString &targetPath); + QString targetPath() const; + bool targetExists(); + bool isValid(); + bool remove(); + +private: + QString m_path; +}; + +#endif // LINK_H |