~aleteoryx/muditaos

ref: fe708cdf31392bc009227c63ceb091ac450d6a78 muditaos/module-apps/apps-common/popups/lock-popups/phone-lock-wallpapers/WallpaperClock.hpp -rw-r--r-- 835 bytes
fe708cdf — Adam Wulkiewicz [MOS-670] Change clang-format AlwaysBreakTemplateDeclarations to Yes 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include "WallpaperBase.hpp"
#include <widgets/ClockDateWidget.hpp>
#include <notifications/NotificationsListPresenter.hpp>
#include <ListView.hpp>

namespace gui
{
    class WallpaperClock : public WallpaperBase
    {
      private:
        gui::ClockDateWidget *clockDate  = nullptr;
        gui::ListView *notificationsList = nullptr;
        std::shared_ptr<gui::NotificationsListPresenter> notificationsListPresenter;

      public:
        WallpaperClock(gui::Item *parent);
        void show() override;
        void hide() override;
        std::shared_ptr<NotificationsPresenter> getNotificationsPresenter() override;

        void updateTime();
    };

} /* namespace gui */