You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.7 KiB
71 lines
2.7 KiB
15 years ago
|
/*
|
||
|
This file is part of the KDE Project
|
||
|
|
||
|
Copyright (C) 2003-2005 Mickael Marchand <marchand@kde.org>
|
||
|
|
||
|
This library is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU General Public License
|
||
|
version 2 as published by the Free Software Foundation.
|
||
|
|
||
|
This software is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU General Public License
|
||
|
along with this library; see the file COPYING. If not, write to
|
||
15 years ago
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
Boston, MA 02110-1301, USA.
|
||
15 years ago
|
*/
|
||
|
|
||
|
#ifndef KSVND_H
|
||
|
#define KSVND_H
|
||
|
|
||
|
#include <dcopclient.h>
|
||
|
#include <kdedmodule.h>
|
||
|
#include <kurl.h>
|
||
15 years ago
|
#include <tqstringlist.h>
|
||
15 years ago
|
|
||
|
class KSvnd : public KDEDModule
|
||
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
//
|
||
15 years ago
|
K_DCOP
|
||
|
|
||
13 years ago
|
//note: InSVN means parent is added. InRepos means itself is added
|
||
15 years ago
|
enum { SomeAreFiles = 1, SomeAreFolders = 2, SomeAreInParentsEntries = 4, SomeParentsHaveSvn = 8, SomeHaveSvn = 16, SomeAreExternalToParent = 32, AllAreInParentsEntries = 64, AllParentsHaveSvn = 128, AllHaveSvn = 256, AllAreExternalToParent = 512, AllAreFolders = 1024 };
|
||
|
public:
|
||
15 years ago
|
KSvnd(const TQCString &);
|
||
15 years ago
|
~KSvnd();
|
||
|
|
||
|
k_dcop:
|
||
12 years ago
|
// void addAuthInfo(TDEIO::AuthInfo, long);
|
||
15 years ago
|
TQString commitDialog(TQString);
|
||
15 years ago
|
bool anyNotValidWorkingCopy( const KURL::List& wclist );
|
||
|
bool anyValidWorkingCopy( const KURL::List& wclist );
|
||
|
bool AreAnyFilesNotInSvn( const KURL::List& wclist );
|
||
|
bool AreAnyFilesInSvn( const KURL::List& wclist );
|
||
|
bool AreAllFilesNotInSvn( const KURL::List& wclist );
|
||
|
bool AreAllFilesInSvn( const KURL::List& wclist );
|
||
15 years ago
|
TQStringList getActionMenu ( const KURL::List& list );
|
||
|
TQStringList getTopLevelActionMenu ( const KURL::List &list );
|
||
|
// void notify(const TQString&, int ,int, const TQString& , int , int, long int, const TQString&);
|
||
|
// void status(const TQString& path, int text_status, int prop_status, int repos_text_status, int repos_prop_status ,long int rev);
|
||
|
// void popupMessage( const TQString& message );
|
||
15 years ago
|
|
||
|
k_dcop_signals:
|
||
|
//emitted whenever something happens using subversion ;)
|
||
15 years ago
|
// void subversionNotify(const TQString&, int ,int, const TQString& , int , int, long int, const TQString&);
|
||
13 years ago
|
// void subversionStatus(const TQString&,int,int,int,int,long int);
|
||
15 years ago
|
|
||
|
public slots:
|
||
|
|
||
|
protected:
|
||
15 years ago
|
bool isFileInSvnEntries ( const TQString filename, const TQString entfile );
|
||
|
bool isFileInExternals ( const TQString filename, const TQString propfile );
|
||
15 years ago
|
bool isFolder( const KURL& url );
|
||
13 years ago
|
int getStatus( const KURL::List& list );
|
||
15 years ago
|
};
|
||
|
|
||
|
#endif
|