HelloWorld/HelloWorld.cc

Go to the documentation of this file.
00001 //
00002 // Copyright 2002 Sony Corporation 
00003 //
00004 // Permission to use, copy, modify, and redistribute this software for
00005 // non-commercial use is hereby granted.
00006 //
00007 // This software is provided "as is" without warranty of any kind,
00008 // either expressed or implied, including but not limited to the
00009 // implied warranties of fitness for a particular purpose.
00010 //
00011 
00012 #include <OPENR/OSyslog.h>
00013 #include "HelloWorld.h"
00014 
00015 HelloWorld::HelloWorld ()
00016 {
00017     OSYSDEBUG(("HelloWorld::HelloWorld()\n"));
00018 }
00019 
00020 OStatus
00021 HelloWorld::DoInit(const OSystemEvent& event)
00022 {
00023     OSYSDEBUG(("HelloWorld::DoInit()\n"));
00024     return oSUCCESS;
00025 }
00026 
00027 OStatus
00028 HelloWorld::DoStart(const OSystemEvent& event)
00029 {
00030     OSYSDEBUG(("HelloWorld::DoStart()\n"));
00031     OSYSPRINT(("!!! Hello World !!!\n"));
00032     return oSUCCESS;
00033 }    
00034 
00035 OStatus
00036 HelloWorld::DoStop(const OSystemEvent& event)
00037 {
00038     OSYSDEBUG(("HelloWorld::DoStop()\n"));
00039     OSYSLOG1((osyslogERROR, "Bye Bye ..."));
00040     return oSUCCESS;
00041 }
00042 
00043 OStatus
00044 HelloWorld::DoDestroy(const OSystemEvent& event)
00045 {
00046     return oSUCCESS;
00047 }

Generated on Sun Dec 2 23:04:28 2007 for openSDK by  doxygen 1.3.9.1