summaryrefslogtreecommitdiffabout
path: root/lib/cgi_component.cc
authorMichael Krelin <hacker@klever.net>2005-01-29 21:21:05 (UTC)
committer Michael Krelin <hacker@klever.net>2005-01-29 21:21:05 (UTC)
commitce1f37aae46ea95020d7b865f7a80e8abdfad0d8 (patch) (side-by-side diff)
tree4964383ab8cd7e6d8ea821f1a615d1bbcf98dad8 /lib/cgi_component.cc
parent3c75c860fc1ad5b3f5185e23ec6f438dd2528958 (diff)
downloadsitecing-0.0.zip
sitecing-0.0.tar.gz
sitecing-0.0.tar.bz2
initial commit into repository0.0
Diffstat (limited to 'lib/cgi_component.cc') (more/less context) (show whitespace changes)
-rw-r--r--lib/cgi_component.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/cgi_component.cc b/lib/cgi_component.cc
new file mode 100644
index 0000000..b5c4bee
--- a/dev/null
+++ b/lib/cgi_component.cc
@@ -0,0 +1,30 @@
+#ifdef USE_PCH
+ #include "pch.h"
+#else
+ #include "sitecing/cgi_component.h"
+#endif
+
+namespace sitecing {
+
+ cgi_component::cgi_component()
+ : __CGI(NULL) {
+ }
+ cgi_component::~cgi_component() {
+ }
+
+ void cgi_component::__set_interface(sitecing_interface* scif) {
+ acomponent::__set_interface(scif);
+ kingate::cgi_gateway *oc = __CGI;
+ __CGI = __SCIF?__SCIF->cgigw:NULL;
+ if(__CGI!=oc)
+ __on_change_CGI(oc);
+ }
+ void cgi_component::__on_change_interface(sitecing_interface *o) {
+ acomponent::__on_change_interface(o); // But it's a no-op
+ // TODO: do something about runtime type check, maybe?
+ __SCIF = (sitecing_interface_cgi*)acomponent::__SCIF;
+ }
+ void cgi_component::__on_change_CGI(kingate::cgi_gateway *o) { }
+ void cgi_component::__on_imports() { }
+
+}