00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00057
00058
00059
00060 #ifndef __MX_GETCONFIGSECTION_H__
00061 #define __MX_GETCONFIGSECTION_H__
00062
00063
00064
00065 #define MX_GETCONFIGSECTION_ID "GetConfigSection"
00066
00067
00068
00069 #include "GetWebPage.h"
00070
00071 #include <interfaces/IGetConfigSection.h>
00072
00073 #include <Framework/Framework.h>
00074
00075
00076
00077 namespace mx {
00078
00080
00088 class GetConfigSection : public GetWebPage,
00089 public virtual IGetConfigSection {
00090
00091 Q_OBJECT
00092
00096 private:
00097 static mxm::smart<mxmStringList> _enumerateInterfaces() {
00098 return(new mxmStringList((mxmString(MX_GETCONFIGSECTION_ID),
00099 MX_ICOMPONENT_ID,
00100 MX_IGETCONFIGSECTION_ID,
00101 MX_IASYNCACTION_ID,
00102 MX_ISUPPORTSHOSTSPECIFICATION_ID,
00103 MX_ISUPPORTSPROXYSPECIFICATION_ID,
00104 MX_ISUPPORTSWEBPAGESPECIFICATION_ID,
00105 MX_ICANUSEKEYCHAIN_ID,
00106 MX_ICANUSEDIALOGS_ID,
00107 MX_ICANUSETIMEOUTS_ID)));
00108 }
00109 static mxm::smart<mxmStringList> _enumerateCapabilities(
00110 const mxmString &interface) {
00111 if(interface == mx::Framework::IdHintKey)
00112 return(new mxmStringList(MX_GETCONFIGSECTION_ID));
00113 else
00114 return(new mxmStringList());
00115 }
00116
00117 private:
00118 class Invoker : public mxmObject, public virtual IComponentInvoker {
00119 public:
00120 mxm::smart<mxmStringList> enumerateInterfaces() {
00121 return(_enumerateInterfaces());
00122 }
00123 mxm::smart<mxmStringList> enumerateCapabilities(
00124 const mxmString &interface) {
00125 return(_enumerateCapabilities(interface));
00126 }
00127 IComponent *newComponent() {
00128 return(new GetConfigSection());
00129 }
00130 };
00131 public:
00132 static IComponentInvoker *newInvoker() {
00133 return(new Invoker());
00134 }
00135
00136 private:
00137 mxm::smart<mxmConfigSection> ConfigSection;
00138
00139 public:
00140 GetConfigSection();
00141
00142 public:
00144 mxm::smart<mxmStringList> enumerateInterfaces() {
00145 return(_enumerateInterfaces());
00146 }
00148 mxm::smart<mxmStringList> enumerateCapabilities(
00149 const mxmString &interface) {
00150 return(_enumerateCapabilities(interface));
00151 }
00152
00154 mxm::smart<mxmConfigSection> configSection();
00155
00157 void executeAction();
00158
00159 private slots:
00160 void cleanUpAfterDownload();
00161 };
00162 };
00163
00164
00165
00166 #endif // __MX_GETCONFIGSECTION_H__