File indexing completed on 2023-10-03 06:50:41
0001 /* 0002 SPDX-License-Identifier: GPL-2.0-or-later 0003 SPDX-FileCopyrightText: 2014 Lucas Hermann Negri <lucashnegri@gmail.com> 0004 */ 0005 0006 #ifndef _LUACOMPLETIONOBJECT_H 0007 #define _LUACOMPLETIONOBJECT_H 0008 0009 #include "completionobject.h" 0010 0011 class LuaSession; 0012 class QString; 0013 struct lua_State; 0014 0015 class LuaCompletionObject : public Cantor::CompletionObject 0016 { 0017 public: 0018 LuaCompletionObject( const QString& command, int index, LuaSession* session); 0019 ~LuaCompletionObject() override = default; 0020 0021 protected Q_SLOTS: 0022 void fetchCompletions() override; 0023 0024 protected: 0025 bool mayIdentifierContain(QChar c) const override; 0026 bool mayIdentifierBeginWith(QChar c) const override; 0027 0028 private: 0029 lua_State* m_L; 0030 }; 0031 0032 #endif /* _LUACOMPLETIONOBJECT_H */