2 * Copyright (C) 2007 Sergey Yanovich <ynvich@gmail.com>
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #ifndef AASESSIONHISTORY_H
21 #define AASESSIONHISTORY_H 1
23 #define AA_SESSIONHISTORY_CID \
24 {0xceee0f16, 0x7194, 0x4831, {0xac, 0x37, 0x3c, 0xd2, 0x5f, 0xb1, 0x09, 0x6b}}
25 #define AA_SESSIONHISTORY_CONTRACT_ID "@aasii.org/view/session-history;1"
29 class nsISHistoryInternal
;
30 class nsIWebNavigation
;
33 class aaSessionHistory
: public nsISHistory
,
34 public nsISHistoryInternal
,
35 public nsIWebNavigation
,
41 virtual ~aaSessionHistory();
43 NS_FORWARD_NSISHISTORY(mSH
->)
44 NS_DECL_NSISHISTORYINTERNAL
45 NS_FORWARD_NSIWEBNAVIGATION(mWN
->)
48 NS_FORWARD_NSISHISTORYINTERNAL(mSHI
->)
49 NS_DECL_NSIWEBNAVIGATION
51 NS_FORWARD_AAISAVEQUERY(mSession
->)
52 NS_FORWARD_AAISESSION(mSession
->)
55 nsresult
Init() {return mSession
? NS_OK
: NS_ERROR_FAILURE
;}
57 friend class aaViewTest
;
59 nsCOMPtr
<aaISession
> mSession
;
60 nsCOMPtr
<nsISHistory
> mSH
;
61 nsCOMPtr
<nsISHistoryInternal
> mSHI
;
62 nsCOMPtr
<nsIWebNavigation
> mWN
;
65 nsCOMPtr
<nsISupports
> mQueryBuffer
;
67 aaIPageView
* getDestination(PRInt32 offset
, nsresult
&rv
);
70 #endif /* AASESSIONHISTORY_H */
72 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
73 /* vim:set ts=2 sw=2 sts=2 et cindent tw=79 ft=cpp: */