text: // Copyright (c) 2015-2017, The Bytecoin developers
  // Copyright (c) 2017-2018, The Karbo developers
  // Copyright (c) 2019, The Qwertycoin developers
  //
  // This file is part of Qwertycoin.
  //
  // Qwertycoin is free software: you can redistribute it and/or modify
  // it under the terms of the GNU Lesser General Public License as published by
  // the Free Software Foundation, either version 3 of the License, or
  // (at your option) any later version.
  //
  // Qwertycoin is distributed in the hope that it will be useful,
  // but WITHOUT ANY WARRANTY; without even the implied warranty of
  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  // GNU Lesser General Public License for more details.
  //
  // You should have received a copy of the GNU Lesser General Public License
  // along with Qwertycoin.  If not, see <http://www.gnu.org/licenses/>.
  
  #pragma once
  
  #include <QObject>
  #include <QUrl>
  
  #include "IApplicationEventHandler.h"
  #include "INotificationMonitorObserver.h"
  
  namespace WalletGui {
  
  class ApplicationEventHandler : public QObject, public IApplicationEventHandler, public INotificationMonitorObserver {
    Q_OBJECT
    Q_DISABLE_COPY(ApplicationEventHandler)
  
  public:
    explicit ApplicationEventHandler(QObject* _parent);
    virtual ~ApplicationEventHandler();
  
    // IApplicationEventHandler
    virtual void init() override;
    virtual QUrl getLastReceivedUrl() override;
    virtual void sendUrl(const QUrl& _url) override;
    virtual void addObserver(IApplicationEventHandlerObserver* _observer) override;
    virtual void removeObserver(IApplicationEventHandlerObserver* _observer) override;
  
    // INotificationMonitorObserver
    virtual void notify(const QString& _notification) override;
  
    // QObject
    bool eventFilter(QObject* _object, QEvent* _event) override;
  
  private:
    QUrl m_receivedUrl;
    void* m_notificationMonitor;
  
  Q_SIGNALS:
    void urlReceivedSignal(const QUrl& _url);
    void screenLockedSignal();
    void screenUnlockedSignal();
  };
  
  }
  