libcoverart  1.0.0
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Macros Pages
Image.h
Go to the documentation of this file.
1 /* --------------------------------------------------------------------------
2 
3  libcoverart - Client library to access CoverArtArchive
4 
5  Copyright (C) 2012 Andrew Hawkins
6 
7  This file is part of libcoverart.
8 
9  This library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU Lesser General Public
11  License as published by the Free Software Foundation; either
12  version 2.1 of the License, or (at your option) any later version.
13 
14  libcoverart is distributed in the hope that it will be useful, but
15  WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this library. If not, see <http://www.gnu.org/licenses/>.
21 
22  $Id$
23 
24 ----------------------------------------------------------------------------*/
25 
26 #ifndef _COVERARTARCHIVE_IMAGE_
27 #define _COVERARTARCHIVE_IMAGE_
28 
29 #include <iostream>
30 
31 #include <jansson.h>
32 
33 namespace CoverArtArchive
34 {
35  class CImagePrivate;
36  class CThumbnails;
37  class CTypeList;
38 
39  class CImage
40  {
41  public:
42  CImage(json_t *Root=0);
43  CImage(const CImage& Other);
44  CImage& operator =(const CImage& Other);
45  virtual ~CImage();
46 
47  bool Approved() const;
48  bool Back() const;
49  std::string Comment() const;
50  int Edit() const;
51  bool Front() const;
52  std::string ID() const;
53  std::string Image() const;
56 
57  private:
58  CImagePrivate * const m_d;
59 
60  void Cleanup();
61  };
62 }
63 
64 std::ostream& operator << (std::ostream& os, const CoverArtArchive::CImage& Image);
65 
66 #endif
bool Approved() const
Definition: Image.h:39
Definition: TypeList.h:39
std::string Comment() const
CImage(json_t *Root=0)
CImage & operator=(const CImage &Other)
Definition: Thumbnails.h:37
std::ostream & operator<<(std::ostream &os, const CoverArtArchive::CImage &Image)
std::string ID() const
std::string Image() const
CoverArtArchive::CTypeList * TypeList() const
CoverArtArchive::CThumbnails * Thumbnails() const