[PVR][Estuary] Timer settings dialog: Show client name in timer type selection dialog...
[xbmc.git] / xbmc / video / Bookmark.h
blob6c118b1744d94b8f037d5bd1c796c4ee983cd5ef
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include <string>
12 #include <vector>
14 class CBookmark
16 public:
17 CBookmark();
18 void Reset();
20 /*! \brief returns true if this bookmark has been set.
21 \return true if totalTimeInSeconds is positive.
23 bool IsSet() const;
25 /*! \brief returns true if this bookmark is part way through the video file
26 \return true if both totalTimeInSeconds and timeInSeconds are positive.
28 bool IsPartWay() const;
30 /*! \brief returns true if this bookmark has a stored serialized player state
31 \return true if playerState is not empty.
33 bool HasSavedPlayerState() const;
35 double timeInSeconds;
36 double totalTimeInSeconds;
37 long partNumber;
38 std::string thumbNailImage;
39 std::string playerState;
40 std::string player;
41 long seasonNumber;
42 long episodeNumber;
44 enum EType
46 STANDARD = 0,
47 RESUME = 1,
48 EPISODE = 2
49 } type;
52 typedef std::vector<CBookmark> VECBOOKMARKS;