~ubuntu-branches/ubuntu/trusty/mediascanner/trusty-proposed

« back to all changes in this revision

Viewing changes to src/mediascanner/declarations.h

  • Committer: Package Import Robot
  • Author(s): Łukasz 'sil2100' Zemczak
  • Date: 2013-08-13 18:47:34 UTC
  • Revision ID: package-import@ubuntu.com-20130813184734-u3lyvu2u1hgybryc
Tags: upstream-0.3.93
Import upstream version 0.3.93

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of the Ubuntu TV Media Scanner
 
3
 * Copyright (C) 2012-2013 Canonical Ltd.
 
4
 *
 
5
 * This program is free software: you can redistribute it and/or modify
 
6
 * it under the terms of the GNU Lesser General Public License version 3 as
 
7
 * published by the Free Software Foundation.
 
8
 *
 
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
 
12
 * GNU Lesser General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public License
 
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
 *
 
17
 * Contact: Jim Hodapp <jim.hodapp@canonical.com>
 
18
 * Authored by: Mathias Hasselmann <mathias@openismus.com>
 
19
 */
 
20
#ifndef MEDIASCANNER_DECLARATIONS_H
 
21
#define MEDIASCANNER_DECLARATIONS_H
 
22
 
 
23
// C Standard Library
 
24
#include <stdint.h>
 
25
 
 
26
// C++ Standard Library
 
27
#include <string>
 
28
 
 
29
// Forward declarations of some types to avoid hard dependency on GLib,
 
30
// Grilo or Lucene++ to avoid hard dependencies for API users that don't
 
31
// use that features. Especially Lucene++ doesn't guarantee source
 
32
// compatibility.
 
33
 
 
34
typedef struct _GFile GFile;
 
35
typedef struct _GKeyFile GKeyFile;
 
36
typedef struct _GList GList;
 
37
typedef struct _GParamSpec GParamSpec;
 
38
typedef struct _GValue GValue;
 
39
typedef struct _GVariant GVariant;
 
40
 
 
41
typedef struct _GstDiscovererInfo GstDiscovererInfo;
 
42
typedef struct _GstDiscovererStreamInfo GstDiscovererStreamInfo;
 
43
typedef struct _GstDiscovererAudioInfo GstDiscovererAudioInfo;
 
44
typedef struct _GstDiscovererVideoInfo GstDiscovererVideoInfo;
 
45
 
 
46
typedef uint32_t GQuark;
 
47
typedef unsigned long GType; // NOLINT: runtime/int
 
48
 
 
49
typedef uint32_t GrlKeyID;
 
50
 
 
51
namespace boost {
 
52
 
 
53
template<typename T> class shared_ptr;
 
54
 
 
55
namespace filesystem {
 
56
 
 
57
// template<class String, class Traits> class basic_path;
 
58
class path;
 
59
 
 
60
} // namespace filesystem
 
61
 
 
62
namespace locale {
 
63
 
 
64
template<typename T> class basic_format;
 
65
 
 
66
typedef basic_format<char> format;
 
67
typedef basic_format<wchar_t> wformat;
 
68
 
 
69
} // namespace locale
 
70
} // namespace boost
 
71
 
 
72
namespace Lucene {
 
73
 
 
74
template<typename> class Collection;
 
75
 
 
76
typedef boost::shared_ptr<class Analyzer> AnalyzerPtr;
 
77
typedef boost::shared_ptr<class Directory> DirectoryPtr;
 
78
typedef boost::shared_ptr<class Document> DocumentPtr;
 
79
typedef boost::shared_ptr<class Fieldable> FieldablePtr;
 
80
typedef boost::shared_ptr<class IndexReader> IndexReaderPtr;
 
81
typedef boost::shared_ptr<class IndexWriter> IndexWriterPtr;
 
82
typedef boost::shared_ptr<class Query> QueryPtr;
 
83
typedef boost::shared_ptr<class Term> TermPtr;
 
84
 
 
85
} // namespace Lucene
 
86
 
 
87
namespace mediascanner {
 
88
namespace internal {
 
89
 
 
90
template<typename T> struct CopyHelper;
 
91
 
 
92
} // namespace internal
 
93
 
 
94
class CommitPolicy;
 
95
class Filter;
 
96
class MediaIndex;
 
97
class MediaInfo;
 
98
class MediaRoot;
 
99
class MediaRootManager;
 
100
class MetadataResolver;
 
101
class RefreshPolicy;
 
102
class TaskManager;
 
103
class WritableMediaIndex;
 
104
 
 
105
template<typename T> class MediaIndexFacade;
 
106
 
 
107
template<typename T, typename CopyHelper = internal::CopyHelper<T> >
 
108
class Wrapper;
 
109
 
 
110
typedef boost::shared_ptr<CommitPolicy> CommitPolicyPtr;
 
111
typedef boost::shared_ptr<MediaRootManager> MediaRootManagerPtr;
 
112
typedef boost::shared_ptr<MetadataResolver> MetadataResolverPtr;
 
113
typedef boost::shared_ptr<TaskManager> TaskManagerPtr;
 
114
 
 
115
typedef boost::filesystem::path FileSystemPath;
 
116
 
 
117
} // namespace mediascanner
 
118
 
 
119
#endif // MEDIASCANNER_DECLARATIONS_H