[video] Ask the user for confirmation when turning a version into an extra or vice...
[xbmc.git] / xbmc / video / Bookmark.cpp
blobd18c00e3f527897fbad9e2f600524d06697232a7
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 #include "Bookmark.h"
11 CBookmark::CBookmark()
13 Reset();
16 void CBookmark::Reset()
18 episodeNumber = 0;
19 seasonNumber = 0;
20 timeInSeconds = 0.0;
21 totalTimeInSeconds = 0.0;
22 partNumber = 0;
23 type = STANDARD;
26 bool CBookmark::IsSet() const
28 return totalTimeInSeconds > 0.0;
31 bool CBookmark::IsPartWay() const
33 return totalTimeInSeconds > 0.0 && timeInSeconds > 0.0;
36 bool CBookmark::HasSavedPlayerState() const
38 return !playerState.empty();