2024-07-03 07:16:53 +00:00
|
|
|
/* Licensed under GPLv3 or later, see the LICENSE file */
|
|
|
|
|
2024-11-07 03:53:04 +00:00
|
|
|
#pragma once
|
2024-07-03 07:16:53 +00:00
|
|
|
|
|
|
|
#include "sptr.hh"
|
|
|
|
#include "dict/dictionary.hh"
|
|
|
|
#include "instances.hh"
|
|
|
|
|
|
|
|
class DictionaryGroup
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DictionaryGroup( std::vector< sptr< Dictionary::Class > > const & allDictionaries_,
|
|
|
|
Instances::Groups const & groups_ ):
|
|
|
|
allDictionaries( allDictionaries_ ),
|
|
|
|
groups( groups_ )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
sptr< Dictionary::Class > getDictionaryByName( QString const & dictionaryName );
|
|
|
|
|
|
|
|
const std::vector< sptr< Dictionary::Class > > * getActiveDictionaries( unsigned groupId );
|
|
|
|
|
|
|
|
sptr< Dictionary::Class > getDictionaryById( const std::string & dictId );
|
|
|
|
|
|
|
|
Instances::Group const * getGroupById( unsigned groupId );
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::vector< sptr< Dictionary::Class > > const & allDictionaries;
|
|
|
|
Instances::Groups const & groups;
|
|
|
|
};
|