4 class testimpl
: public test
7 testimpl() : mIntProp(-5) { }
14 NS_IMPL_ISUPPORTS1(testimpl
, test
);
17 testimpl::Poke(const char *with
)
19 fprintf(stderr
, "poke: %s!\n", with
);
24 testimpl::Say(const char *sayIt
)
26 fprintf(stderr
, "testimpl says: %s!\n", sayIt
);
31 testimpl::Shout(const char *shoutIt
)
33 fprintf(stderr
, "testimpl shouts: %s!\n", shoutIt
);
38 testimpl::Add(PRInt32 a
, PRInt32 b
, PRInt32
*result
)
41 fprintf(stderr
, "%d(%08x) + %d(%08x) = %d(%08x)\n", a
, a
, b
, b
,
47 testimpl::Peek(char **retval
)
49 *retval
= strdup("AHOY!");
50 fprintf(stderr
, "ahoy is %p @ %p\n", *retval
, retval
);
55 testimpl::Callback(testCallback
*cb
)
57 fprintf(stderr
, "testCallback is %p\n", cb
);
62 testimpl::GetIntProp(PRInt32
*aIntProp
)
69 testimpl::SetIntProp(PRInt32 aIntProp
)
76 testimpl::GetRoIntProp(PRInt32
*aRoIntProp
)