MattyNotes
DbManager Class Reference

#include <dbmanager.h>

Public Member Functions

 DbManager ()
 
 ~DbManager ()
 

Static Public Member Functions

static bool connected ()
 
static bool connect (const QString &path)
 
static bool addNote (MattyNote &Note)
 
static bool editNote (MattyNote &Note, int NoteId)
 
static bool deleteNote (int NoteId)
 
static MattyNoteRow showNote (int NoteId)
 
static QVector< MattyNoteRowshowNotes ()
 
static QVector< MattyNoteRowshowNotes (QMap< QString, QString > &Filter)
 
static QSqlTableModel * getModel (const QString &path)
 
static QStringList getTypes ()
 
static QString getTypeName (int TypeId)
 
static int getTypeId (const QString &TypeName)
 
static int getNoteCount ()
 
static void showIsNotOpenedError ()
 

Static Private Attributes

static QSqlDatabase MattyNotesDb
 
static QString PathToDb = ""
 

Constructor & Destructor Documentation

DbManager::DbManager ( )
DbManager::~DbManager ( )

Member Function Documentation

bool DbManager::addNote ( MattyNote Note)
static

Here is the call graph for this function:

Here is the caller graph for this function:

bool DbManager::connect ( const QString &  path)
static

Here is the call graph for this function:

Here is the caller graph for this function:

bool DbManager::connected ( )
static

Here is the call graph for this function:

Here is the caller graph for this function:

bool DbManager::deleteNote ( int  NoteId)
static

Here is the call graph for this function:

Here is the caller graph for this function:

bool DbManager::editNote ( MattyNote Note,
int  NoteId 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

QSqlTableModel * DbManager::getModel ( const QString &  path)
static

Here is the call graph for this function:

int DbManager::getNoteCount ( )
static

Here is the call graph for this function:

int DbManager::getTypeId ( const QString &  TypeName)
static

Here is the call graph for this function:

Here is the caller graph for this function:

QString DbManager::getTypeName ( int  TypeId)
static

Here is the call graph for this function:

Here is the caller graph for this function:

QStringList DbManager::getTypes ( )
static

Here is the call graph for this function:

Here is the caller graph for this function:

void DbManager::showIsNotOpenedError ( )
static

Here is the caller graph for this function:

MattyNoteRow DbManager::showNote ( int  NoteId)
static

Here is the call graph for this function:

Here is the caller graph for this function:

QVector< MattyNoteRow > DbManager::showNotes ( )
static

Here is the call graph for this function:

Here is the caller graph for this function:

QVector< MattyNoteRow > DbManager::showNotes ( QMap< QString, QString > &  Filter)
static

Here is the call graph for this function:

Member Data Documentation

QSqlDatabase DbManager::MattyNotesDb
staticprivate
QString DbManager::PathToDb = ""
staticprivate

The documentation for this class was generated from the following files: