Copyright 2010 Comarch S.A.
*******************************************************************************/
+/*! /file backbone.cpp
+\brief Backbone/core main file \see Backbone
-// Created by Bartosz Szatkowski
+
+\author Bartosz Szatkowski <bulislaw@linux.com>
+*/
#include "backbone.h"
#include <QDebug>
QStringList nameFilter;
nameFilter << "*.so";
QStringList files = getFilesFromDir(_pluginPath, nameFilter);
- qDebug() << files;
foreach(QString file, files) {
QPluginLoader loader(file);
if(dryRun)
return;
QFileInfo file(QDir::toNativeSeparators(fileName));
- qDebug() << file.filePath();
QDir confDir(file.dir());
if(!confDir.exists()){
qDebug() << "Configuration file dosn't exists ("
void Backbone::dictUpdated() {
if(dryRun)
return;
- qDebug() << "UPDATE";
QFileInfo file(QDir::toNativeSeparators(_configPath));
QDir confDir(file.dir());
if(!confDir.exists())
*******************************************************************************/
-// Created by Bartosz Szatkowski
+/*! /file backbone.cpp
+\brief Backbone/core main header \see Backbone
+
+
+\author Bartosz Szatkowski <bulislaw@linux.com>
+*/
#ifndef BACKBONE_H
#define BACKBONE_H
*******************************************************************************/
-// Created by Bartosz Szatkowski
+/*! /file CommonDictInterface.h
+\brief Common interface for all dicts and plugins \see CommonDictInterface
+
+\author Bartosz Szatkowski <bulislaw@linux.com>
+*/
#ifndef COMMONDICTINTERFACE_H
#define COMMONDICTINTERFACE_H
*******************************************************************************/
-//Created by Bartosz Szatkowski
+/*! /file settings.h
+\brief Settings object for pluggins \see Settings
+
+\author Bartosz Szatkowski <bulislaw@linux.com>
+*/
#ifndef SETTINGS_H
#define SETTINGS_H
class CommonDictInterface;
-//! Plugin specific configuration
+/*! Plugins or dictionaries may need to keep some of configuration between
+ sessions, moreover Backbone or GUI may want store some additional info in
+ plugin Settings.
+
+ Its important for plugin to store all information given it in Settings.*/
class Settings {
public:
Settings(){}
*******************************************************************************/
-//Created by Bartosz Szatkowski
+/*! /file translation.h
+\brief Interface for translation instances \see Translation
+
+\author Bartosz Szatkowski <bulislaw@linux.com>
+*/
#ifndef TRANSLATION_H
#define TRANSLATION_H
#include <QMetaType>
-//! Keeping raw form of translation to be parsed only when needed
+/*! Translation is kind of GoF proxy, it stores key:translation pair and
+ provide it in lazy way -> key is available always, but translation is fetched
+ as late as possible*/
class Translation {
public:
//! \return word to be translated
*******************************************************************************/
-// Created by Bartosz Szatkowski
+/*! /file CommonDictInterfaceMock.h
+\brief Mock for dictionary/plugin behaviour testing
+
+\author Bartosz Szatkowski <bulislaw@linux.com>
+*/
#include "../../src/includes/CommonDictInterface.h"
#include "TranslationMock.h"
+/*! CommonDictInterfaceMock simulates dict/plugin behaviour without any
+ non-testMock dependencies, files, etc.*/
class CommonDictInterfaceMock : public CommonDictInterface
{
public:
Copyright 2010 Comarch S.A.
*******************************************************************************/
+/*! /file TranslationMock.cpp
+\brief Testing mock for translation object
-// Created by Bartosz Szatkowski
-
+\author Bartosz Szatkowski <bulislaw@linux.com>
+*/
#include "../../src/includes/translation.h"
+/*! Translation mock is intended to simulate behaviour of real plugins
+ translation, but without dependency and any kind of complicated operations*/
class TranslationMock : public Translation
{
public:
Copyright 2010 Comarch S.A.
*******************************************************************************/
+/*! /file tst_backbone.cpp
+\brief Backbone tests
-// Created by Bartosz Szatkowski
-
-
+\author Bartosz Szatkowski <bulislaw@linux.com>
+*/
#include <QtCore/QString>