[base] Switch to mozbuild (#114)
[abstract.git] / storage / aaSaveQuote.h
blob0a2fff478b3dfe35b117d1dc68376a6334dfba13
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 #ifndef AASAVEQUOTE_H
23 #define AASAVEQUOTE_H 1
25 #define AA_SAVEQUOTE_CID \
26 {0x85840a0f, 0x41fb, 0x4b4d, {0x9f, 0xf8, 0xb0, 0x74, 0x56, 0x46, 0x31, 0xd1}}
27 #define AA_SAVEQUOTE_CONTRACT_ID "@aasii.org/storage/save-quote;1"
29 class aaIDataNode;
30 class mozIStorageConnection;
32 class aaSaveQuote : public aaISaveQuery
34 public:
35 aaSaveQuote(nsISupports *aOuter);
36 virtual ~aaSaveQuote();
37 NS_DECL_ISUPPORTS
38 NS_DECL_AAISAVEQUERY
40 nsresult Init() {return mConnection ? NS_OK : NS_ERROR_INVALID_ARG ;}
41 private:
42 friend class aaStorageTest;
44 nsCOMPtr<mozIStorageConnection> mConnection;
47 #endif /* AASAVEQUOTE_H */