Heart
1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Toggle main menu visibility
Loading...
Searching...
No Matches
dbaddresskey.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
9
#ifndef DBADDRESSKEY_H
10
#define DBADDRESSKEY_H
11
#include "
abstractkey.h
"
12
#include "
dbaddress.h
"
13
14
namespace
QH
{
15
19
class
HEARTSHARED_EXPORT
DbAddressKey
:
public
DbAddress
,
public
AbstractKey
20
{
21
public
:
22
DbAddressKey
();
23
DbAddressKey
(
const
DbAddress
& address);
24
30
DbAddressKey
(
const
QString&
table
,
const
QVariant& value);
31
32
unsigned
int
hash
()
const override
;
33
34
bool
equal
(
const
AbstractKey
*other)
const override
;
35
36
bool
isValid
()
const override
;
37
38
QString
toString
()
const override
;
39
40
};
41
}
42
#endif
// DBADDRESSKEY_H
abstractkey.h
QH::AbstractKey::AbstractKey
AbstractKey()=default
QH::DbAddressKey::toString
QString toString() const override
toString This method should be return the string implementation of this key.
Definition
dbaddresskey.cpp:43
QH::DbAddressKey::hash
unsigned int hash() const override
hash This method must be calc hash int32 code of source object.
Definition
dbaddresskey.cpp:26
QH::DbAddressKey::DbAddressKey
DbAddressKey()
Definition
dbaddresskey.cpp:12
QH::DbAddressKey::equal
bool equal(const AbstractKey *other) const override
equal This method must be make compare between current object and other.
Definition
dbaddresskey.cpp:30
QH::DbAddressKey::isValid
bool isValid() const override
isValid This method check this key object to valid.
Definition
dbaddresskey.cpp:39
QH::DbAddress::DbAddress
DbAddress()=default
QH::DbAddress::table
const QString & table() const
table This method return table name.
Definition
dbaddress.cpp:58
dbaddress.h
QH
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition
heart.cpp:13
src
public
dbaddresskey.h
Generated by
1.18.0