File indexing completed on 2024-03-24 15:28:37

0001 /*
0002  * SPDX-FileCopyrightText: 2022 Georg Gadinger <nilsding@nilsding.org>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 #ifndef KCOLORSCHEMEWATCHER_MAC_H
0008 #define KCOLORSCHEMEWATCHER_MAC_H
0009 
0010 #include "kcolorschemewatcherbackend.h"
0011 
0012 class KColorSchemeWatcherMac : public KColorSchemeWatcherBackend
0013 {
0014     Q_OBJECT
0015 
0016 public:
0017     explicit KColorSchemeWatcherMac();
0018     ~KColorSchemeWatcherMac();
0019 
0020     KColorSchemeWatcher::ColorPreference systemPreference() const override;
0021 
0022 private:
0023     // not ideal, in obj-c++ this would be an `id`, but since this header is
0024     // included from pure C++ files the compiler will not know what to do with
0025     // an `id`
0026     void *m_observer;
0027 };
0028 
0029 #endif