• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

vcs

vcsmapping.h

00001 /* This file is part of KDevelop
00002  *
00003  * Copyright 2007 Andreas Pakulat <apaku@gmx.de>
00004  * Copyright 2007 Matthew Woehlke <mw_triad@users.sourceforge.net>
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301, USA.
00020  */
00021 
00022 #ifndef VCSMAPPING_H
00023 #define VCSMAPPING_H
00024 
00025 #include <QtCore/QVariant>
00026 
00027 #include <kurl.h>
00028 
00029 #include "vcsexport.h"
00030 
00031 class QString;
00032 class QStringList;
00033 
00034 namespace KDevelop
00035 {
00036 
00037 class VcsLocation;
00038 
00043 class KDEVPLATFORMVCS_EXPORT VcsMapping
00044 {
00045 public:
00046     enum MappingFlag
00047     {
00048         Recursive = 1    ,
00049         NonRecursive = 2 
00050     };
00051 
00052     VcsMapping();
00053     virtual ~VcsMapping();
00054     VcsMapping(const VcsMapping&);
00055 
00056     void addMapping( const VcsLocation& sourceLocation,
00057                      const VcsLocation& destinationLocation,
00058                      MappingFlag recursion );
00059     void removeMapping( const VcsLocation& sourceLocation);
00060     QList<VcsLocation> sourceLocations() const;
00061     VcsLocation destinationLocation( const VcsLocation& sourceLocation ) const;
00062     MappingFlag mappingFlag( const VcsLocation& sourceLocation ) const;
00063 
00064     VcsMapping& operator=( const VcsMapping& rhs);
00065 private:
00066     class VcsMappingPrivate* const d;
00067 };
00068 
00069 }
00070 
00071 Q_DECLARE_METATYPE( KDevelop::VcsMapping )
00072 
00073 #endif
00074 

vcs

Skip menu "vcs"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal