[xpunit] Rename from 'cxxunit' and switch to mozbuild (bug #114)
[abstract.git] / base / aaBaseModule.cpp
blob445bdabc676813146b8eb6d283d7d21662c0f1eb
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 <abstract/aacore.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 <abstract/aaParamFactory.h>
33 #include <abstract/base/aaIEntity.h>
34 #include <abstract/base/aaIResource.h>
35 #include <abstract/base/aaIFlow.h>
36 #include <abstract/base/aaIFact.h>
37 #include <abstract/base/aaIBalance.h>
38 #include <abstract/base/aaIEvent.h>
39 #include <abstract/base/aaIQuote.h>
40 #include <abstract/base/aaITransaction.h>
41 #include "aaEntity.h"
42 #include "aaResource.h"
43 #include "aaFlow.h"
44 #include "aaFact.h"
45 #include "aaState.h"
46 #include "aaEvent.h"
47 #include "aaQuote.h"
48 #include "aaTransaction.h"
49 #include "aaIncomeFlow.h"
51 NS_GENERIC_FACTORY_CONSTRUCTOR_PARAM(aaEntity)
52 NS_GENERIC_FACTORY_CONSTRUCTOR(aaResource)
53 NS_GENERIC_FACTORY_CONSTRUCTOR(aaFlow)
54 NS_GENERIC_FACTORY_CONSTRUCTOR(aaFact)
55 NS_GENERIC_FACTORY_CONSTRUCTOR(aaState)
56 NS_GENERIC_FACTORY_CONSTRUCTOR(aaEvent)
57 NS_GENERIC_FACTORY_CONSTRUCTOR(aaQuote)
58 NS_GENERIC_FACTORY_CONSTRUCTOR(aaTransaction)
59 NS_GENERIC_FACTORY_CONSTRUCTOR(aaIncomeFlow)
61 NS_DECL_CLASSINFO(aaResource)
62 NS_DECL_CLASSINFO(aaEvent)
64 static const nsModuleComponentInfo components[] =
67 "Entity",
68 AA_ENTITY_CID,
69 AA_ENTITY_CONTRACT_ID,
70 aaEntityConstructor
73 "Resource",
74 AA_RESOURCE_CID,
75 AA_RESOURCE_CONTRACT_ID,
76 aaResourceConstructor
77 ,NULL, NULL, NULL,
78 NS_CI_INTERFACE_GETTER_NAME(aaResource),
79 NULL,
80 &NS_CLASSINFO_NAME(aaResource)
83 "Flow",
84 AA_FLOW_CID,
85 AA_FLOW_CONTRACT_ID,
86 aaFlowConstructor
89 "Fact",
90 AA_FACT_CID,
91 AA_FACT_CONTRACT_ID,
92 aaFactConstructor
95 "State",
96 AA_STATE_CID,
97 AA_STATE_CONTRACT_ID,
98 aaStateConstructor
101 "Event",
102 AA_EVENT_CID,
103 AA_EVENT_CONTRACT_ID,
104 aaEventConstructor,
105 NULL, NULL, NULL,
106 NS_CI_INTERFACE_GETTER_NAME(aaEvent),
107 NULL,
108 &NS_CLASSINFO_NAME(aaEvent)
111 "Quote",
112 AA_QUOTE_CID,
113 AA_QUOTE_CONTRACT_ID,
114 aaQuoteConstructor
117 "Transaction",
118 AA_TRANSACTION_CID,
119 AA_TRANSACTION_CONTRACT_ID,
120 aaTransactionConstructor
123 "Income Flow",
124 AA_INCOMEFLOW_CID,
125 AA_INCOMEFLOW_CONTRACT_ID,
126 aaIncomeFlowConstructor
129 NS_IMPL_NSGETMODULE(aabase, components)