Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 /**
7 * A sample of XPConnect. This file contains a sample interface.
8 *
9 */
11 #include "nsISupports.idl"
13 /**
14 * The uuid is a unique number identifying the interface normally
15 * called IID. It can be generated as follows:
16 *
17 * Windows: guidgen.exe
18 * Unix: uuidgen which comes with e2fsprogs package
19 * Mac: ???
20 * All platform: Using irc, connect to irc.mozilla.org and type in
21 * /join #mozilla
22 * /msg mozbot uuid
23 *
24 */
25 [scriptable, uuid(7CB5B7A1-07D7-11d3-BDE2-000064657374)]
26 interface nsISample : nsISupports
27 {
28 attribute string value;
29 void writeValue(in string aPrefix);
30 void poke(in string aValue);
31 };