qmlfrontend/engine_instance.cpp
author Grigory Ustinov <grenka@altlinux.org>
Mon, 12 Nov 2018 20:05:24 +0300
changeset 14203 73c5ba3aac45
parent 14159 8354b390f1a2
child 14276 1aac8a62be6f
permissions -rw-r--r--
Verify and update russian translations for refreshed strings in 04:XX / part 2 (last)

#include "engine_instance.h"

EngineInstance::EngineInstance(QObject *parent)
    : QObject(parent), m_instance(Engine::start_engine()) {}

EngineInstance::~EngineInstance() { Engine::cleanup(m_instance); }

Engine::PreviewInfo EngineInstance::generatePreview() {
  Engine::PreviewInfo pinfo;

  Engine::generate_preview(m_instance, &pinfo);

  return pinfo;
}