1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/startup/public/nsIUserInfo.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsISupports.idl" 1.10 + 1.11 +[scriptable, uuid(6c1034f0-1dd2-11b2-aa14-e6657ed7bb0b)] 1.12 +interface nsIUserInfo : nsISupports 1.13 +{ 1.14 + /* these are things the system may know about the current user */ 1.15 + 1.16 + readonly attribute wstring fullname; 1.17 + 1.18 + readonly attribute string emailAddress; 1.19 + 1.20 + /* should this be a wstring? */ 1.21 + readonly attribute string username; 1.22 + 1.23 + readonly attribute string domain; 1.24 +}; 1.25 + 1.26 +%{C++ 1.27 + 1.28 +// 14c13684-1dd2-11b2-9463-bb10ba742554 1.29 +#define NS_USERINFO_CID \ 1.30 +{ 0x14c13684, 0x1dd2, 0x11b2, \ 1.31 + {0x94, 0x63, 0xbb, 0x10, 0xba, 0x74, 0x25, 0x54}} 1.32 + 1.33 +#define NS_USERINFO_CONTRACTID "@mozilla.org/userinfo;1" 1.34 + 1.35 +%}