controlpanelui/src/cpcategorymodel/src/cpcategorysettingformmodel.cpp
changeset 33 0cfa53de576f
parent 19 36aa4756ee82
--- a/controlpanelui/src/cpcategorymodel/src/cpcategorysettingformmodel.cpp	Thu Aug 05 11:28:29 2010 +0800
+++ b/controlpanelui/src/cpcategorymodel/src/cpcategorysettingformmodel.cpp	Tue Aug 24 10:56:32 2010 +0800
@@ -11,16 +11,18 @@
 *
 * Contributors:
 *
-* Description:  
+* Description:  An extension to HbDataFormModel, can be filled with model items comes from controlpanel plugins.
 *
 */
 
 #include "cpcategorysettingformmodel.h"
 #include <QString>
-
 #include "cpcategorymodelutility.h"
 #include <cpitemdatahelper.h>
 
+/*
+ * Private implementation
+ */
 class CpCategorySettingFormModelPrivate
 {
 public:
@@ -39,16 +41,25 @@
 	QString mConfigFile;
 };
 
+/*
+ * Constructor
+ */
 CpCategorySettingFormModel::CpCategorySettingFormModel(const QString &configFile) : 
 	d (new CpCategorySettingFormModelPrivate(configFile))
 {
 }
 
+/*
+ * Destructor
+ */
 CpCategorySettingFormModel::~CpCategorySettingFormModel()
 {
 	delete d;
 }
 
+/*
+ * Initialize
+ */
 void CpCategorySettingFormModel::initialize(CpItemDataHelper &itemDataHelper)
 {
     //avoid to be called twice
@@ -70,11 +81,18 @@
     }
 }
 
-
+/*
+ * Derived class can override this function to do some specific work before loading config plugins
+ */
 void CpCategorySettingFormModel::beforeLoadingConfigPlugins(CpItemDataHelper&/*itemDataHelper*/)
 {
 }
 
+/*
+ * Derived class can override this function to do some specific work after loading config plugins
+ */
 void CpCategorySettingFormModel::afterLoadingConfigPlugins(CpItemDataHelper &/*itemDataHelper*/)
 {
 }
+
+//End of File