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: */
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>
25 #include "nsIGenericFactory.h"
26 #include "nsISHistory.h"
28 #include "nsIClassInfoImpl.h"
31 #include "unstable/nsISHistoryInternal.h"
32 #include "unstable/nsIWebNavigation.h"
33 #include "unstable/nsISHEntry.h"
34 #include "unstable/nsISHContainer.h"
36 /* Project includes */
37 #include <abstract/aaParamFactory.h>
38 #include <abstract/storage/aaISession.h>
39 #include <abstract/view/aaISHistory.h>
40 #include <abstract/view/aaIPageView.h>
41 #include "aaSessionHistory.h"
42 #include "aaTreeView.h"
43 #include "aaTreeViewEntity.h"
44 #include "aaTreeViewResource.h"
45 #include "aaTreeViewFlow.h"
46 #include "aaTreeViewBalance.h"
47 #include "aaTreeViewTranscript.h"
48 #include "aaPageView.h"
50 NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(aaSessionHistory
, Init
)
51 NS_GENERIC_FACTORY_CONSTRUCTOR(aaTreeViewEntity
)
52 NS_GENERIC_FACTORY_CONSTRUCTOR(aaTreeViewResource
)
53 NS_GENERIC_FACTORY_CONSTRUCTOR(aaTreeViewFlow
)
54 NS_GENERIC_FACTORY_CONSTRUCTOR(aaTreeViewBalance
)
55 NS_GENERIC_FACTORY_CONSTRUCTOR(aaTreeViewTranscript
)
56 NS_GENERIC_FACTORY_CONSTRUCTOR_PARAM(aaPageView
)
58 NS_DECL_CLASSINFO(aaSessionHistory
)
60 static const nsModuleComponentInfo kComponents
[] =
64 AA_SESSIONHISTORY_CID
,
65 AA_SESSIONHISTORY_CONTRACT_ID
,
66 aaSessionHistoryConstructor
68 NS_CI_INTERFACE_GETTER_NAME(aaSessionHistory
),
70 &NS_CLASSINFO_NAME(aaSessionHistory
)
74 AA_TREEVIEWENTITY_CID
,
75 AA_TREEVIEWENTITY_CONTRACT_ID
,
76 aaTreeViewEntityConstructor
80 AA_TREEVIEWRESOURCE_CID
,
81 AA_TREEVIEWRESOURCE_CONTRACT_ID
,
82 aaTreeViewResourceConstructor
87 AA_TREEVIEWFLOW_CONTRACT_ID
,
88 aaTreeViewFlowConstructor
92 AA_TREEVIEWBALANCE_CID
,
93 AA_TREEVIEWBALANCE_CONTRACT_ID
,
94 aaTreeViewBalanceConstructor
98 AA_TREEVIEWTRANSCRIPT_CID
,
99 AA_TREEVIEWTRANSCRIPT_CONTRACT_ID
,
100 aaTreeViewTranscriptConstructor
105 AA_PAGEVIEW_CONTRACT_ID
,
106 aaPageViewConstructor
109 NS_IMPL_NSGETMODULE(aaview
, kComponents
)