[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdesdk/kioslave/svn/ksvnd
From:       Mickael Marchand <marchand () kde ! org>
Date:       2005-05-06 18:29:37
Message-ID: 1115404177.814596.11587.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 410111 by marchand:

add test case for John



 M  +19 -0     trunk/KDE/kdesdk/kioslave/svn/ksvnd/ksvnd.cpp  
 M  +3 -0      trunk/KDE/kdesdk/kioslave/svn/ksvnd/ksvnd.h  


--- trunk/KDE/kdesdk/kioslave/svn/ksvnd/ksvnd.cpp #410110:410111
@@ -196,6 +196,25 @@
 	return false;
 }
 
+bool KSvnd::isFolder( const KURL& url ) {
+	QDir d( url.path() );
+	return d.exists();
+}
+
+QStringList KSvnd::getActionMenu ( const KURL::List &list ) {
+	QStringList result;
+	if ( AreAllFilesNotInSvn( list ) ) {
+		result << "" << "Import";
+		result << "" << "Add";
+	}
+	if ( AreAllFilesInSvn( list ) ) {
+		result << "" << "Update";
+		result << "" << "Commit";
+	}
+
+	return result;
+}
+
 #if 0
 void KSvnd::notify(const QString& path, int action, int kind, const QString& \
mime_type, int content_state, int prop_state, long int revision, const QString& \
userstring) {  kdDebug(7128) << "KDED/Subversion : notify " << path << " action : " \
<< action << " mime_type : " << mime_type << " content_state : " << content_state << \
" prop_state : " << prop_state << " revision : " << revision << " userstring : " << \
                userstring << endl; 
--- trunk/KDE/kdesdk/kioslave/svn/ksvnd/ksvnd.h #410110:410111
@@ -24,6 +24,7 @@
 #include <dcopclient.h>
 #include <kdedmodule.h>
 #include <kurl.h>
+#include <qstringlist.h>
 
 class KSvnd : public KDEDModule
 {
@@ -42,6 +43,7 @@
   bool AreAnyFilesInSvn( const KURL::List& wclist );
   bool AreAllFilesNotInSvn( const KURL::List& wclist );
   bool AreAllFilesInSvn( const KURL::List& wclist );
+  QStringList getActionMenu ( const KURL::List& list );
 //  void notify(const QString&, int ,int, const QString& , int , int, long int, \
const QString&);  //  void status(const QString& path, int text_status, int \
prop_status, int repos_text_status, int repos_prop_status ,long int rev);  //  void \
popupMessage( const QString& message ); @@ -56,6 +58,7 @@
 protected:
   bool isFileInSvnEntries ( const QString filename, const QString entfile );
   bool isFileInExternals ( const QString filename, const QString propfile );
+  bool isFolder( const KURL& url );
 };
 
 #endif


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic