Message info
 
To:kde-commits@kde.org From:Alexander Reinholdt Subject:playground/network/smb4k/core Date:Sun, 18 Mar 2012 17:56:49 +0100 (CET)
 

SVN commit 1286198 by areinholdt:

Add modifyCursor() function and modify initCore() function.


M +10 -1 smb4kglobal.cpp
M +12 -1 smb4kglobal.h


--- trunk/playground/network/smb4k/core/smb4kglobal.cpp #1286197:1286198
@@ -67,8 +67,11 @@



-void Smb4KGlobal::initCore()
+void Smb4KGlobal::initCore( bool modifyCursor )
{
+ // Should the core use a busy cursor?
+ p.modifyCursor = modifyCursor;
+
// Set default values for some settings.
p.setDefaultSettings();

@@ -827,3 +830,9 @@
}


+bool Smb4KGlobal::modifyCursor()
+{
+ return p.modifyCursor;
+}
+
+
--- trunk/playground/network/smb4k/core/smb4kglobal.h #1286197:1286198
@@ -68,9 +68,12 @@
* (for the import of all externally mounted shares), it also sets some default
* values for some of the settings used to browse the network.
*
+ * By setting the @p modifyCursor parameter to TRUE, you force the core classes
+ * to set a busy cursor when they do something. Default is FALSE.
+ *
* You should execute this function before starting your main application.
*/
- KDE_EXPORT void initCore();
+ KDE_EXPORT void initCore( bool modifyCursor = false );

/**
* Aborts all actions that are run by the core classes and that can be aborted.
@@ -390,6 +393,14 @@
* @returns the WINS server
*/
KDE_EXPORT const QString winsServer();
+
+ /**
+ * This function returns TRUE if the core classes should set a busy cursor when
+ * they are doing something.
+ *
+ * @returns TRUE in case a busy cursor should be set.
+ */
+ KDE_EXPORT bool modifyCursor();
};

#endif