vcs
vcsmapping.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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