--- smsdaemon/plugins/createskeleton.sh 2008/06/10 20:40:25 41 +++ smsdaemon/plugins/createskeleton.sh 2008/12/15 10:13:21 187 @@ -26,7 +26,7 @@ echo "{" >> $HEADER echo "public:" >> $HEADER echo -e "\t$CLASS();\n" >> $HEADER -echo -e "\tvirtual void Execute(GsmModem& modem, SMS& sms);\n" >> $HEADER +echo -e "\tvirtual void Execute(ISmsTransceiver& modem, SMS& sms);\n" >> $HEADER echo -e "\tvirtual ~$CLASS() {}\n" >> $HEADER echo -e "};\n\n" >> $HEADER echo -n "#endif // __" >> $HEADER @@ -35,14 +35,23 @@ #create implementation file echo "#include \"$HEADER\"" > $CPP -echo -e "#include \"GsmModem.h\"\n" >> $CPP +echo -e "#include \"ISmsTransceiver.h\"" >> $CPP +echo -e "#include \"Sms.h\"\n" >> $CPP echo "$CLASS::$CLASS()" >> $CPP echo " : Plugin(\"$CLASSLO\", \"\")" >> $CPP echo "{" >> $CPP echo -e "}\n" >> $CPP -echo "void $CLASS::Execute(GsmModem& modem, SMS& sms)" >> $CPP +echo "void $CLASS::Execute(ISmsTransceiver& modem, SMS& sms)" >> $CPP echo "{" >> $CPP echo -e "\t//Add Implementation" >> $CPP echo "}" >> $CPP + +echo "" +echo "Created $HEADER and $CPP" +echo "Remember to:" +echo " - Add an implementation in the $CLASS::Execute() method" +echo " - Add $CPP to CMakeLists.txt" +echo " - Add $HEADER and $CPP to source control" +echo " - Add an instance of $CLASS to PluginManager::LoadPlugins()"