QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskGraphicProviderMap.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_GRAPHIC_PROVIDER_MAP_H
7#define QSK_GRAPHIC_PROVIDER_MAP_H
8
9#include "QskGlobal.h"
10#include <memory>
11
13class QString;
14
16{
17 public:
20
21 void insert( const QString& providerId, QskGraphicProvider* );
22
23 void remove( const QString& providerId );
24 void remove( QskGraphicProvider* );
25
26 void clear();
27
28 QskGraphicProvider* take( const QString& providerId );
29 QskGraphicProvider* provider( const QString& providerId ) const;
30
31 int size() const;
32
33 private:
34 Q_DISABLE_COPY( QskGraphicProviderMap )
35
36 class PrivateData;
37 std::unique_ptr< PrivateData > m_data;
38};
39
40#endif