transport: pass correct channel
[abstract.git] / base / aaBaseModule.cpp
blobb0420c052b4d5adb44f7546b61ff4c24f23fa3d4
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 "nsIMutableArray.h"
27 #include "nsCOMArray.h"
28 #include "nsIClassInfoImpl.h"
30 /* Project includes */
31 #include "aaParamFactory.h"
32 #include "aaTimeFrame.h"
33 #include "aaEntity.h"
34 #include "aaAsset.h"
35 #include "aaMoney.h"
36 #include "aaFlow.h"
37 #include "aaFact.h"
38 #include "aaState.h"
39 #include "aaEvent.h"
40 #include "aaRule.h"
41 #include "aaQuote.h"
42 #include "aaTransaction.h"
43 #include "aaIncomeFlow.h"
44 #include "aaIncome.h"
45 #include "aaBaseKeys.h"
47 NS_GENERIC_FACTORY_CONSTRUCTOR(aaTimeFrame)
48 NS_GENERIC_FACTORY_CONSTRUCTOR(aaEntity)
49 NS_GENERIC_FACTORY_CONSTRUCTOR(aaAsset)
50 NS_GENERIC_FACTORY_CONSTRUCTOR(aaMoney)
51 NS_GENERIC_FACTORY_CONSTRUCTOR(aaFlow)
52 NS_GENERIC_FACTORY_CONSTRUCTOR(aaFact)
53 NS_GENERIC_FACTORY_CONSTRUCTOR(aaState)
54 NS_GENERIC_FACTORY_CONSTRUCTOR(aaEvent)
55 NS_GENERIC_FACTORY_CONSTRUCTOR(aaRule)
56 NS_GENERIC_FACTORY_CONSTRUCTOR(aaQuote)
57 NS_GENERIC_FACTORY_CONSTRUCTOR(aaTransaction)
58 NS_GENERIC_FACTORY_CONSTRUCTOR(aaIncomeFlow)
59 NS_GENERIC_FACTORY_CONSTRUCTOR(aaIncome)
61 NS_DECL_CLASSINFO(aaAsset)
62 NS_DECL_CLASSINFO(aaMoney)
63 NS_DECL_CLASSINFO(aaEvent)
64 NS_DECL_CLASSINFO(aaRule)
65 NS_DECL_CLASSINFO(aaQuote)
66 NS_DECL_CLASSINFO(aaIncome)
68 static const nsModuleComponentInfo components[] =
70 { "Time Frame",
71 AA_TIMEFRAME_CID,
72 AA_TIMEFRAME_CONTRACT,
73 aaTimeFrameConstructor}
75 "Entity",
76 AA_ENTITY_CID,
77 AA_ENTITY_CONTRACT,
78 aaEntityConstructor
81 "Asset",
82 AA_ASSET_CID,
83 AA_ASSET_CONTRACT,
84 aaAssetConstructor
85 ,NULL, NULL, NULL,
86 NS_CI_INTERFACE_GETTER_NAME(aaAsset),
87 NULL,
88 &NS_CLASSINFO_NAME(aaAsset)
91 "Money",
92 AA_MONEY_CID,
93 AA_MONEY_CONTRACT,
94 aaMoneyConstructor
95 ,NULL, NULL, NULL,
96 NS_CI_INTERFACE_GETTER_NAME(aaMoney),
97 NULL,
98 &NS_CLASSINFO_NAME(aaMoney)
101 "Flow",
102 AA_FLOW_CID,
103 AA_FLOW_CONTRACT,
104 aaFlowConstructor
107 "Fact",
108 AA_FACT_CID,
109 AA_FACT_CONTRACT,
110 aaFactConstructor
113 "State",
114 AA_STATE_CID,
115 AA_STATE_CONTRACT,
116 aaStateConstructor
119 "Event",
120 AA_EVENT_CID,
121 AA_EVENT_CONTRACT,
122 aaEventConstructor,
123 NULL, NULL, NULL,
124 NS_CI_INTERFACE_GETTER_NAME(aaEvent),
125 NULL,
126 &NS_CLASSINFO_NAME(aaEvent)
129 "Rule",
130 AA_RULE_CID,
131 AA_RULE_CONTRACT,
132 aaRuleConstructor,
133 NULL, NULL, NULL,
134 NS_CI_INTERFACE_GETTER_NAME(aaRule),
135 NULL,
136 &NS_CLASSINFO_NAME(aaRule)
139 "Quote",
140 AA_QUOTE_CID,
141 AA_QUOTE_CONTRACT,
142 aaQuoteConstructor
143 ,NULL, NULL, NULL,
144 NS_CI_INTERFACE_GETTER_NAME(aaQuote),
145 NULL,
146 &NS_CLASSINFO_NAME(aaQuote)
149 "Transaction",
150 AA_TRANSACTION_CID,
151 AA_TRANSACTION_CONTRACT,
152 aaTransactionConstructor
155 "Income Flow",
156 AA_INCOMEFLOW_CID,
157 AA_INCOMEFLOW_CONTRACT,
158 aaIncomeFlowConstructor
161 "Income",
162 AA_INCOME_CID,
163 AA_INCOME_CONTRACT,
164 aaIncomeConstructor
165 ,NULL, NULL, NULL,
166 NS_CI_INTERFACE_GETTER_NAME(aaIncome),
167 NULL,
168 &NS_CLASSINFO_NAME(aaIncome)
171 NS_IMPL_NSGETMODULE(aabase, components)