• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/project

  • sources
  • kfour-appscomplete
  • kdevelop
  • kdevplatform
  • project
helper.h
Go to the documentation of this file.
1 /* This file is part of KDevelop
2  Copyright 2010 Milian Wolff <[email protected]>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KDEVPLATFORM_PROJECTHELPER_H
21 #define KDEVPLATFORM_PROJECTHELPER_H
22 
23 #include "projectexport.h"
24 
25 class QUrl;
26 
27 namespace KDevelop {
28 class IProject;
29 class Path;
30 
36 bool KDEVPLATFORMPROJECT_EXPORT removeUrl(const KDevelop::IProject* project, const QUrl& url, const bool isFolder);
37 
43 bool KDEVPLATFORMPROJECT_EXPORT removePath(const KDevelop::IProject* project, const Path& path, const bool isFolder);
44 
49 bool KDEVPLATFORMPROJECT_EXPORT createFile(const QUrl& file);
50 
55 bool KDEVPLATFORMPROJECT_EXPORT createFile(const Path& file);
56 
61 bool KDEVPLATFORMPROJECT_EXPORT createFolder(const QUrl& folder);
62 
67 bool KDEVPLATFORMPROJECT_EXPORT createFolder(const Path& folder);
68 
73 bool KDEVPLATFORMPROJECT_EXPORT renameUrl(const KDevelop::IProject* project, const QUrl& oldname, const QUrl& newname);
74 
79 bool KDEVPLATFORMPROJECT_EXPORT renamePath(const KDevelop::IProject* project, const Path& oldName, const Path& newName);
80 
85 bool KDEVPLATFORMPROJECT_EXPORT copyUrl(const KDevelop::IProject* project, const QUrl& source, const QUrl& target);
86 
91 bool KDEVPLATFORMPROJECT_EXPORT copyPath(const KDevelop::IProject* project, const Path& source, const Path& target);
92 
96 Path KDEVPLATFORMPROJECT_EXPORT proposedBuildFolder(const Path& sourceFolder);
97 }
98 
99 #endif // KDEVPLATFORM_PROJECTHELPER_H
QUrl
KDevelop::createFile
bool KDEVPLATFORMPROJECT_EXPORT createFile(const QUrl &file)
Creates a file at url.
Definition: helper.cpp:99
KDevelop::proposedBuildFolder
Path KDEVPLATFORMPROJECT_EXPORT proposedBuildFolder(const Path &sourceFolder)
Return the proposed build folder URL for given sourceFolder.
Definition: helper.cpp:237
KDevelop::copyUrl
bool KDEVPLATFORMPROJECT_EXPORT copyUrl(const KDevelop::IProject *project, const QUrl &source, const QUrl &target)
Copies anything at source to target.
Definition: helper.cpp:211
KDevelop::renamePath
bool KDEVPLATFORMPROJECT_EXPORT renamePath(const KDevelop::IProject *project, const Path &oldName, const Path &newName)
Renames anything at oldName to oldName.
KDevelop::createFolder
bool KDEVPLATFORMPROJECT_EXPORT createFolder(const QUrl &folder)
Creates a folder at url.
Definition: helper.cpp:132
KDevelop
Definition: abstractfilemanagerplugin.h:33
KDevelop::renameUrl
bool KDEVPLATFORMPROJECT_EXPORT renameUrl(const KDevelop::IProject *project, const QUrl &oldname, const QUrl &newname)
Renames anything at oldname to oldname.
Definition: helper.cpp:150
KDevelop::removePath
bool KDEVPLATFORMPROJECT_EXPORT removePath(const KDevelop::IProject *project, const Path &path, const bool isFolder)
Deletes the path at path.
KDevelop::removeUrl
bool KDEVPLATFORMPROJECT_EXPORT removeUrl(const KDevelop::IProject *project, const QUrl &url, const bool isFolder)
Deletes the url at url.
Definition: helper.cpp:50
KDevelop::copyPath
bool KDEVPLATFORMPROJECT_EXPORT copyPath(const KDevelop::IProject *project, const Path &source, const Path &target)
Copies anything at source to target.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Mar 3 2021 00:37:59 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevplatform/project

Skip menu "kdevplatform/project"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal