[accounting] Add 'load chart' query (bug 86)
[abstract.git] / base / aaBaseModule.cpp
blob66b2d21ec75a9b6f80f2d98853a3a8aa0f079845
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et cindent tw=79 ft=cpp: */
3 /*
4 * Copyright (C) 2007 Sergey Yanovich <ynvich@gmail.com>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #include "xpcom-config.h"
24 #include "nsCOMPtr.h"
25 #include "nsIGenericFactory.h"
26 #include "nsEmbedString.h"
27 #include "nsIMutableArray.h"
28 #include "nsCOMArray.h"
29 #include "nsIClassInfoImpl.h"
31 /* Project includes */
32 #include "aaParamFactory.h"
33 #include "aaEntity.h"
34 #include "aaResource.h"
35 #include "aaFlow.h"
36 #include "aaFact.h"
37 #include "aaState.h"
38 #include "aaEvent.h"
39 #include "aaQuote.h"
40 #include "aaTransaction.h"
41 #include "aaIncomeFlow.h"
43 NS_GENERIC_FACTORY_CONSTRUCTOR_PARAM(aaEntity)
44 NS_GENERIC_FACTORY_CONSTRUCTOR(aaResource)
45 NS_GENERIC_FACTORY_CONSTRUCTOR(aaFlow)
46 NS_GENERIC_FACTORY_CONSTRUCTOR(aaFact)
47 NS_GENERIC_FACTORY_CONSTRUCTOR(aaState)
48 NS_GENERIC_FACTORY_CONSTRUCTOR(aaEvent)
49 NS_GENERIC_FACTORY_CONSTRUCTOR(aaQuote)
50 NS_GENERIC_FACTORY_CONSTRUCTOR(aaTransaction)
51 NS_GENERIC_FACTORY_CONSTRUCTOR(aaIncomeFlow)
53 NS_DECL_CLASSINFO(aaResource)
54 NS_DECL_CLASSINFO(aaEvent)
56 static const nsModuleComponentInfo components[] =
59 "Entity",
60 AA_ENTITY_CID,
61 AA_ENTITY_CONTRACT_ID,
62 aaEntityConstructor
65 "Resource",
66 AA_RESOURCE_CID,
67 AA_RESOURCE_CONTRACT_ID,
68 aaResourceConstructor
69 ,NULL, NULL, NULL,
70 NS_CI_INTERFACE_GETTER_NAME(aaResource),
71 NULL,
72 &NS_CLASSINFO_NAME(aaResource)
75 "Flow",
76 AA_FLOW_CID,
77 AA_FLOW_CONTRACT_ID,
78 aaFlowConstructor
81 "Fact",
82 AA_FACT_CID,
83 AA_FACT_CONTRACT_ID,
84 aaFactConstructor
87 "State",
88 AA_STATE_CID,
89 AA_STATE_CONTRACT_ID,
90 aaStateConstructor
93 "Event",
94 AA_EVENT_CID,
95 AA_EVENT_CONTRACT_ID,
96 aaEventConstructor,
97 NULL, NULL, NULL,
98 NS_CI_INTERFACE_GETTER_NAME(aaEvent),
99 NULL,
100 &NS_CLASSINFO_NAME(aaEvent)
103 "Quote",
104 AA_QUOTE_CID,
105 AA_QUOTE_CONTRACT_ID,
106 aaQuoteConstructor
109 "Transaction",
110 AA_TRANSACTION_CID,
111 AA_TRANSACTION_CONTRACT_ID,
112 aaTransactionConstructor
115 "Income Flow",
116 AA_INCOMEFLOW_CID,
117 AA_INCOMEFLOW_CONTRACT_ID,
118 aaIncomeFlowConstructor
121 NS_IMPL_NSGETMODULE(aabase, components)