libmusicbrainz3  3.0.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
iwebservice.h
Go to the documentation of this file.
1 /*
2  * MusicBrainz -- The Internet music metadatabase
3  *
4  * Copyright (C) 2006 Lukas Lalinsky
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library 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  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  *
20  *
21  */
22 
23 #ifndef __MUSICBRAINZ3_IWEBSERVICE_H__
24 #define __MUSICBRAINZ3_IWEBSERVICE_H__
25 
26 #include <string>
28 #include <musicbrainz3/includes.h>
29 #include <musicbrainz3/filters.h>
30 
31 namespace MusicBrainz
32 {
33 
41  {
42  public:
43 
44  virtual ~IWebService() {};
45 
70  virtual std::string get(const std::string &entity,
71  const std::string &id,
72  const IIncludes::IncludeList &include,
73  const IFilter::ParameterList &filter,
74  const std::string &version = "1") = 0;
75 
86  virtual void post(const std::string &entity,
87  const std::string &id,
88  const std::string &data,
89  const std::string &version = "1") = 0;
90  };
91 
92 }
93 
94 #endif