File indexing completed on 2024-05-05 11:55:58

0001 /*
0002     SPDX-License-Identifier: GPL-2.0-or-later
0003     SPDX-FileCopyrightText: 2010 Oleksiy Protas <elfy.ua@gmail.com>
0004 */
0005 
0006 #ifndef _RCOMPLETIONOBJECT_H
0007 #define _RCOMPLETIONOBJECT_H
0008 
0009 #include "completionobject.h"
0010 #include <expression.h>
0011 
0012 class RSession;
0013 
0014 class RCompletionObject : public Cantor::CompletionObject
0015 {
0016   Q_OBJECT
0017   public:
0018     RCompletionObject( const QString& cmd, int index, RSession* session );
0019     ~RCompletionObject() override;
0020 
0021   protected Q_SLOTS:
0022     void fetchCompletions() override;
0023     void receiveCompletions(Cantor::Expression::Status status);
0024 
0025   private:
0026     Cantor::Expression* m_expression;
0027 };
0028 
0029 #endif /* _RCOMPLETIONOBJECT_H */