"Fossies" - the Fresh Open Source Software Archive

Member "tdesktop-2.6.1/Telegram/SourceFiles/platform/win/notifications_manager_win.h" (24 Feb 2021, 1284 Bytes) of package /linux/misc/tdesktop-2.6.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "notifications_manager_win.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2 This file is part of Telegram Desktop,
    3 the official desktop application for the Telegram messaging service.
    4 
    5 For license and copyright information please follow this link:
    6 https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
    7 */
    8 #pragma once
    9 
   10 #include "platform/platform_notifications_manager.h"
   11 
   12 namespace Platform {
   13 namespace Notifications {
   14 
   15 #ifndef __MINGW32__
   16 
   17 class Manager : public Window::Notifications::NativeManager {
   18 public:
   19     Manager(Window::Notifications::System *system);
   20     ~Manager();
   21 
   22     bool init();
   23     void clearNotification(NotificationId id);
   24 
   25 protected:
   26     void doShowNativeNotification(
   27         not_null<PeerData*> peer,
   28         std::shared_ptr<Data::CloudImageView> &userpicView,
   29         MsgId msgId,
   30         const QString &title,
   31         const QString &subtitle,
   32         const QString &msg,
   33         bool hideNameAndPhoto,
   34         bool hideReplyButton) override;
   35     void doClearAllFast() override;
   36     void doClearFromHistory(not_null<History*> history) override;
   37     void doClearFromSession(not_null<Main::Session*> session) override;
   38     void onBeforeNotificationActivated(NotificationId id) override;
   39     void onAfterNotificationActivated(NotificationId id) override;
   40 
   41 private:
   42     class Private;
   43     const std::unique_ptr<Private> _private;
   44 
   45 };
   46 #endif // !__MINGW32__
   47 
   48 } // namespace Notifications
   49 } // namespace Platform