2009-07-13 22:12:50 -07:00
|
|
|
#include "mozilla/test/TestProtocolParent.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace test {
|
|
|
|
|
|
|
|
// Header file contents
|
|
|
|
class TestParent :
|
|
|
|
public TestProtocolParent
|
|
|
|
{
|
2009-07-17 21:00:01 -07:00
|
|
|
protected:
|
|
|
|
#if 1
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// "Hello world" example
|
|
|
|
virtual nsresult RecvWorld();
|
|
|
|
|
|
|
|
|
|
|
|
#elif 0
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Example solution to exercise
|
2009-07-17 16:10:10 -07:00
|
|
|
virtual nsresult RecvPing();
|
|
|
|
virtual nsresult RecvPong(const int& status);
|
2009-07-13 22:12:50 -07:00
|
|
|
virtual nsresult RecvGetValue(const String& key);
|
|
|
|
virtual nsresult RecvGetValues(const StringArray& keys);
|
|
|
|
virtual nsresult RecvSetValue(
|
|
|
|
const String& key,
|
|
|
|
const String& val,
|
|
|
|
bool* ok);
|
2009-07-17 21:00:01 -07:00
|
|
|
#endif
|
2009-07-13 22:12:50 -07:00
|
|
|
|
|
|
|
public:
|
|
|
|
TestParent();
|
|
|
|
virtual ~TestParent();
|
|
|
|
|
|
|
|
void DoStuff();
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace test
|
|
|
|
} // namespace mozilla
|