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

List:       kde-commits
Subject:    KDE/kdebase/workspace/libs/plasma
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2008-01-25 0:11:12
Message-ID: 1201219872.506267.27459.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 765979 by aseigo:

ComponentType enumeration


 M  +13 -0     plasma.h  


--- trunk/KDE/kdebase/workspace/libs/plasma/plasma.h #765978:765979
@@ -136,6 +136,18 @@
                };
 
 /**
+ * The ComonentType enumeration refers to the various types of components,
+ * or plugins, supported by plasma.
+ */
+enum ComponentType { AppletComponent = 1 /**< Plasma::Applet based plugins **/,
+                     DataEngineComponent = 2 /**< Plasma::DataEngine based plugins **/,
+                     RunnerComponent = 4 /**< Plasma::AbstractRunner based plugsin **/,
+                     AnimatorComponent = 8 /**< Plasma::Animator based plugins **/,
+                     ContainmentComponent = 16 /**< Plasma::Containment based plugins **/
+                   };
+Q_DECLARE_FLAGS(ComponentTypes, ComponentType)
+
+/**
  * @return the scaling factor (0..1) for a ZoomLevel
  **/
 PLASMA_EXPORT qreal scalingFactor(ZoomLevel level);
@@ -158,5 +170,6 @@
 
 Q_DECLARE_OPERATORS_FOR_FLAGS(Plasma::Constraints)
 Q_DECLARE_OPERATORS_FOR_FLAGS(Plasma::Flip)
+Q_DECLARE_OPERATORS_FOR_FLAGS(Plasma::ComponentTypes)
 
 #endif // multiple inclusion guard
[prev in list] [next in list] [prev in thread] [next in thread] 

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