Skip to content

Commit

Permalink
Merge pull request #19 from nbaum/master
Browse files Browse the repository at this point in the history
Add stub for KTLProjectManager::copyFilesAndFolders from kdevplatform.

This new method has appeared first in kdevplatform 1.4.90.

The releases 1.4.0 and 1.4.1 of kdevplatform have
#define KDEVELOP_PLUGIN_VERSION 14
 while the release 1.4.90 has
#define KDEVELOP_PLUGIN_VERSION 15
 so the check for proper KDevelop / KDevPlatform version should be:
# if KDEV_PLUGIN_VERSION >= 15

After adding that check, this pull request is ready for merge in my opinion.
  • Loading branch information
zoltanp committed Aug 31, 2013
2 parents 82b4131 + 0490614 commit 3689392
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/kdevplugins/ktlproject/ktlprojectmanager.cpp
Expand Up @@ -360,6 +360,12 @@ bool KTLProjectManager::moveFilesAndFolders(const QList<KDevelop::ProjectBaseIte
}
#endif

bool KTLProjectManager::copyFilesAndFolders(const KUrl::List& items, KDevelop::ProjectFolderItem* newParent){
// FIXME implement me
// always fail to move, because this functionality is not implemented
return false;
}

bool KTLProjectManager::renameFile( ProjectFileItem* oldFile, const KUrl& newFile )
{
KUrl oldFileUrl = oldFile->url();
Expand Down
2 changes: 2 additions & 0 deletions src/kdevplugins/ktlproject/ktlprojectmanager.h
Expand Up @@ -99,6 +99,8 @@ class KTLProjectManager : public IPlugin, public IProjectFileManager
virtual bool moveFilesAndFolders(const QList<KDevelop::ProjectBaseItem*>&, KDevelop::ProjectFolderItem*);
#endif

virtual bool copyFilesAndFolders(const KUrl::List &, KDevelop::ProjectFolderItem*);

/**
*
*/
Expand Down

0 comments on commit 3689392

Please sign in to comment.