[KLF Application]
[KLF Tools]
[KLF Backend]
[KLF Home]
KLatexFormula Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
klflibdbengine_p.h
Go to the documentation of this file.
1
/***************************************************************************
2
* file klflibdbengine_p.h
3
* This file is part of the KLatexFormula Project.
4
* Copyright (C) 2011 by Philippe Faist
5
* philippe.faist at bluewin.ch
6
* *
7
* This program is free software; you can redistribute it and/or modify *
8
* it under the terms of the GNU General Public License as published by *
9
* the Free Software Foundation; either version 2 of the License, or *
10
* (at your option) any later version. *
11
* *
12
* This program is distributed in the hope that it will be useful, *
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15
* GNU General Public License for more details. *
16
* *
17
* You should have received a copy of the GNU General Public License *
18
* along with this program; if not, write to the *
19
* Free Software Foundation, Inc., *
20
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21
***************************************************************************/
22
/* $Id: klflibdbengine_p.h 603 2011-02-26 23:14:55Z phfaist $ */
23
24
30
#ifndef KLFLIBDBENGINE_P_H
31
#define KLFLIBDBENGINE_P_H
32
33
#include <QObject>
34
35
37
class
KLFLibDBEnginePropertyChangeNotifier
:
public
QObject
38
{
39
Q_OBJECT
40
public
:
41
KLFLibDBEnginePropertyChangeNotifier
(
const
QString
& dbname,
QObject
*
parent
)
42
:
QObject
(parent), pDBName(dbname), pRef(0) { }
43
virtual
~KLFLibDBEnginePropertyChangeNotifier
() { }
44
45
void
ref
() { ++pRef; }
47
bool
deRef
() {
return
!--pRef; }
48
49
void
notifyResourcePropertyChanged
(
int
propId)
50
{
51
emit
resourcePropertyChanged
(propId);
52
}
53
54
void
notifySubResourcePropertyChanged
(
const
QString
& subResource,
int
propId)
55
{
56
emit
subResourcePropertyChanged
(subResource, propId);
57
}
58
59
signals:
60
void
resourcePropertyChanged
(
int
propId);
61
void
subResourcePropertyChanged
(
const
QString
& subResource,
int
propId);
62
63
private
:
64
QString
pDBName;
65
int
pRef;
66
};
67
68
69
70
71
72
#endif
Generated by
doxygen
1.8.2