LCOV - code coverage report
Current view: directory - toolkit/system/dbus - nsDBusModule.cpp (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 : /* vim:expandtab:shiftwidth=4:tabstop=4:
       3                 :  */
       4                 : /* ***** BEGIN LICENSE BLOCK *****
       5                 :  * Version: NPL 1.1/GPL 2.0/LGPL 2.1
       6                 :  *
       7                 :  * The contents of this file are subject to the Mozilla Public
       8                 :  * License Version 1.1 (the "License"); you may not use this file
       9                 :  * except in compliance with the License. You may obtain a copy of
      10                 :  * the License at http://www.mozilla.org/MPL/
      11                 :  *
      12                 :  * Software distributed under the License is distributed on an "AS
      13                 :  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
      14                 :  * implied. See the License for the specific language governing
      15                 :  * rights and limitations under the License.
      16                 :  *
      17                 :  * The Original Code is Novell code.
      18                 :  *
      19                 :  * The Initial Developer of the Original Code is Novell, Inc.
      20                 :  * Portions created by the Initial Developer are Copyright (C) 2006
      21                 :  * the Initial Developer. All Rights Reserved.
      22                 :  *
      23                 :  * Original Author: Robert O'Callahan (rocallahan@novell.com)
      24                 :  *
      25                 :  * Contributor(s):
      26                 :  *
      27                 :  * Alternatively, the contents of this file may be used under the terms of
      28                 :  * either the GNU General Public License Version 2 or later (the "GPL"), or
      29                 :  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
      30                 :  * in which case the provisions of the GPL or the LGPL are applicable instead
      31                 :  * of those above. If you wish to allow use of your version of this file only
      32                 :  * under the terms of either the GPL or the LGPL, and not to allow others to
      33                 :  * use your version of this file under the terms of the NPL, indicate your
      34                 :  * decision by deleting the provisions above and replace them with the notice
      35                 :  * and other provisions required by the GPL or the LGPL. If you do not delete
      36                 :  * the provisions above, a recipient may use your version of this file under
      37                 :  * the terms of any one of the NPL, the GPL or the LGPL.
      38                 :  *
      39                 :  * ***** END LICENSE BLOCK ***** */
      40                 : 
      41                 : #include "nsServiceManagerUtils.h"
      42                 : #include "nsICategoryManager.h"
      43                 : #include "mozilla/ModuleUtils.h"
      44                 : #include "nsIAppStartupNotifier.h"
      45                 : #include "nsNetworkManagerListener.h"
      46                 : #include "nsNetCID.h"
      47                 : 
      48                 : #define NS_DBUS_NETWORK_LINK_SERVICE_CLASSNAME "DBus Network Link Status"
      49                 : #define NS_DBUS_NETWORK_LINK_SERVICE_CID    \
      50                 :   { 0x75a500a2,                                        \
      51                 :     0x0030,                                            \
      52                 :     0x40f7,                                            \
      53                 :     { 0x86, 0xf8, 0x63, 0xf2, 0x25, 0xb9, 0x40, 0xae } \
      54                 :   }
      55                 :   
      56                 : /* ===== XPCOM registration stuff ======== */
      57                 : 
      58            2772 : NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsNetworkManagerListener, Init)
      59                 : NS_DEFINE_NAMED_CID(NS_DBUS_NETWORK_LINK_SERVICE_CID);
      60                 : 
      61                 : static const mozilla::Module::CIDEntry kDBUSCIDs[] = {
      62                 :     { &kNS_DBUS_NETWORK_LINK_SERVICE_CID, false, NULL, nsNetworkManagerListenerConstructor },
      63                 :     { NULL }
      64                 : };
      65                 : 
      66                 : static const mozilla::Module::ContractIDEntry kDBUSContracts[] = {
      67                 :     { NS_NETWORK_LINK_SERVICE_CONTRACTID, &kNS_DBUS_NETWORK_LINK_SERVICE_CID },
      68                 :     { NULL }
      69                 : };
      70                 : 
      71                 : static const mozilla::Module kDBUSModule = {
      72                 :     mozilla::Module::kVersion,
      73                 :     kDBUSCIDs,
      74                 :     kDBUSContracts
      75                 : };
      76                 : 
      77                 : NSMODULE_DEFN(nsDBusModule) = &kDBUSModule;

Generated by: LCOV version 1.7