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.
11 #include "guilib/GUIWindow.h"
12 #include "interfaces/IAnnouncer.h"
13 #include "utils/Job.h"
17 class CGUIWindowHome
:
19 public ANNOUNCEMENT::IAnnouncer
,
24 ~CGUIWindowHome(void) override
;
25 void OnInitWindow() override
;
26 void Announce(ANNOUNCEMENT::AnnouncementFlag flag
,
27 const std::string
& sender
,
28 const std::string
& message
,
29 const CVariant
& data
) override
;
31 bool OnMessage(CGUIMessage
& message
) override
;
32 bool OnAction(const CAction
&action
) override
;
34 void OnJobComplete(unsigned int jobID
, bool success
, CJob
*job
) override
;
36 int m_updateRA
; // flag for which recently added items needs to be queried
37 void AddRecentlyAddedJobs(int flag
);
39 bool m_recentlyAddedRunning
= false;
40 int m_cumulativeUpdateFlag
= 0;