[app] Display 'transaction.value' after completion (bug #25)
[abstract.git] / view / aaSessionHistory.h
blob0dcdd81e2b41452c663bcfbb662883dad36edb12
1 /*
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"
27 class aaISession;
28 class nsISHistory;
29 class nsISHistoryInternal;
30 class nsIWebNavigation;
31 class aaISession;
33 class aaSessionHistory : public nsISHistory,
34 public nsISHistoryInternal,
35 public nsIWebNavigation,
36 public aaISHistory,
37 public aaISession
39 public:
40 aaSessionHistory();
41 virtual ~aaSessionHistory();
42 NS_DECL_ISUPPORTS
43 NS_FORWARD_NSISHISTORY(mSH->)
44 NS_DECL_NSISHISTORYINTERNAL
45 NS_FORWARD_NSIWEBNAVIGATION(mWN->)
46 #if 0
47 NS_DECL_NSISHISTORY
48 NS_FORWARD_NSISHISTORYINTERNAL(mSHI->)
49 NS_DECL_NSIWEBNAVIGATION
50 #endif
51 NS_FORWARD_AAISAVEQUERY(mSession->)
52 NS_FORWARD_AAISESSION(mSession->)
53 NS_DECL_AAISHISTORY
55 nsresult Init() {return mSession ? NS_OK : NS_ERROR_FAILURE;}
56 private:
57 friend class aaViewTest;
59 nsCOMPtr<aaISession> mSession;
60 nsCOMPtr<nsISHistory> mSH;
61 nsCOMPtr<nsISHistoryInternal> mSHI;
62 nsCOMPtr<nsIWebNavigation> mWN;
64 PRBool mChoosing;
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: */