File indexing completed on 2024-04-28 11:20:36

0001 /*
0002     SPDX-License-Identifier: GPL-2.0-or-later
0003     SPDX-FileCopyrightText: 2013 Filipe Saraiva <filipe@kde.org>
0004 */
0005 
0006 #ifndef _PYTHONKEYWORDS_H
0007 #define _PYTHONKEYWORDS_H
0008 
0009 #include <QStringList>
0010 
0011 class PythonKeywords
0012 {
0013   private:
0014     PythonKeywords();
0015     ~PythonKeywords() = default;
0016   public:
0017     static PythonKeywords* instance();
0018 
0019     const QStringList& functions() const;
0020     const QStringList& keywords() const;
0021     const QStringList& variables() const;
0022 
0023     void loadFromModule(const QString& module, const QStringList& keywords);
0024 
0025   private:
0026     void loadKeywords();
0027 
0028   private:
0029     QStringList m_functions;
0030     QStringList m_keywords;
0031     QStringList m_variables;
0032 };
0033 #endif /* _PYTHONKEYWORDS_H */