Heart
1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Toggle main menu visibility
Loading...
Searching...
No Matches
softdelete.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018-2025 QuasarApp.
3
* Distributed under the lgplv3 software license, see the accompanying
4
* Everyone is permitted to copy and distribute verbatim copies
5
* of this license document, but changing it is not allowed.
6
*/
7
8
#ifndef SOFTDELETE_H
9
#define SOFTDELETE_H
10
#include "heart_global.h"
11
12
namespace
QH
{
13
20
class
HEARTSHARED_EXPORT
SoftDelete
{
21
public
:
22
SoftDelete
();
28
virtual
~SoftDelete
();
29
34
void
softDelete
();
35
36
protected
:
42
virtual
void
prepareForDelete
() = 0;
43
44
private
:
45
bool
fSoftDelete =
false
;
46
};
47
}
48
#endif
// SOFTDELETE_H
QH::SoftDelete::softDelete
void softDelete()
softDelete This method remove this object and save all changes into database.
Definition
softdelete.cpp:28
QH::SoftDelete::SoftDelete
SoftDelete()
QH::SoftDelete::prepareForDelete
virtual void prepareForDelete()=0
prepareForDelete This method must be prepare object for delete. Override this for working main functi...
QH
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition
heart.cpp:13
src
public
softdelete.h
Generated by
1.18.0