Browse Source

Fixed indentation.

Sascha Zelzer 14 years ago
parent
commit
0ca6560fff
1 changed files with 61 additions and 61 deletions
  1. 61 61
      Libs/PluginFramework/ctkServiceRegistrationPrivate.h

+ 61 - 61
Libs/PluginFramework/ctkServiceRegistrationPrivate.h

@@ -29,88 +29,88 @@
 #include "ctkServiceReference.h"
 
 
-  class ctkPluginPrivate;
-  class ctkServiceRegistration;
+class ctkPluginPrivate;
+class ctkServiceRegistration;
 
-  class ctkServiceRegistrationPrivate
-  {
+class ctkServiceRegistrationPrivate
+{
 
-  protected:
+protected:
 
-    ctkServiceRegistration* const q_ptr;
+  ctkServiceRegistration* const q_ptr;
 
-    /**
-     * Service or ctkServiceFactory object.
-     */
-    QObject* service;
+  /**
+   * Service or ctkServiceFactory object.
+   */
+  QObject* service;
 
-  public:
+public:
 
-    Q_DECLARE_PUBLIC(ctkServiceRegistration);
+  Q_DECLARE_PUBLIC(ctkServiceRegistration);
 
 
-    /**
-     * Plugin registering this service.
-     */
-    ctkPluginPrivate* plugin;
+  /**
+   * Plugin registering this service.
+   */
+  ctkPluginPrivate* plugin;
 
-    /**
-     * Reference object to this service registration.
-     */
-    ctkServiceReference reference;
+  /**
+   * Reference object to this service registration.
+   */
+  ctkServiceReference reference;
 
-    /**
-     * Service properties.
-     */
-    ServiceProperties properties;
+  /**
+   * Service properties.
+   */
+  ServiceProperties properties;
 
-    /**
-     * Plugins dependent on this service. Integer is used as
-     * reference counter, counting number of unbalanced getService().
-     */
-    QHash<QSharedPointer<ctkPlugin>,int> dependents;
+  /**
+   * Plugins dependent on this service. Integer is used as
+   * reference counter, counting number of unbalanced getService().
+   */
+  QHash<QSharedPointer<ctkPlugin>,int> dependents;
 
-    /**
-     * Object instances that factory has produced.
-     */
-    QHash<QSharedPointer<ctkPlugin>, QObject*> serviceInstances;
+  /**
+   * Object instances that factory has produced.
+   */
+  QHash<QSharedPointer<ctkPlugin>, QObject*> serviceInstances;
 
-    /**
-     * Is service available. I.e., if <code>true</code> then holders
-     * of a ctkServiceReference for the service are allowed to get it.
-     */
-    volatile bool available;
+  /**
+   * Is service available. I.e., if <code>true</code> then holders
+   * of a ctkServiceReference for the service are allowed to get it.
+   */
+  volatile bool available;
 
-    /**
-     * Avoid recursive unregistrations. I.e., if <code>true</code> then
-     * unregistration of this service has started but is not yet
-     * finished.
-     */
-    volatile bool unregistering;
+  /**
+   * Avoid recursive unregistrations. I.e., if <code>true</code> then
+   * unregistration of this service has started but is not yet
+   * finished.
+   */
+  volatile bool unregistering;
 
-    /**
-     * Lock object for synchronous event delivery.
-     */
-    QMutex eventLock;
+  /**
+   * Lock object for synchronous event delivery.
+   */
+  QMutex eventLock;
 
-    QMutex propsLock;
+  QMutex propsLock;
 
-    ctkServiceRegistrationPrivate(ctkServiceRegistration* sr, ctkPluginPrivate* plugin, QObject* service,
-                               const ServiceProperties& props);
+  ctkServiceRegistrationPrivate(ctkServiceRegistration* sr, ctkPluginPrivate* plugin, QObject* service,
+                                const ServiceProperties& props);
 
-    virtual ~ctkServiceRegistrationPrivate();
+  virtual ~ctkServiceRegistrationPrivate();
 
-    /**
-     * Check if a plugin uses this service
-     *
-     * @param p Plugin to check
-     * @return true if plugin uses this service
-     */
-    bool isUsedByPlugin(QSharedPointer<ctkPlugin> p);
+  /**
+   * Check if a plugin uses this service
+   *
+   * @param p Plugin to check
+   * @return true if plugin uses this service
+   */
+  bool isUsedByPlugin(QSharedPointer<ctkPlugin> p);
 
-    virtual QObject* getService();
+  virtual QObject* getService();
 
-  };
+};
 
 
 #endif // CTKSERVICEREGISTRATIONPRIVATE_H