Banking_System_Server  1.0.0
Qt-based banking app for user/admin account management, transactions, secure server communication via PostgreSQL/Supabase.
DB::DatabaseConfig Struct Reference

Configuration settings for database connections. More...

#include <db.h>

Collaboration diagram for DB::DatabaseConfig:
Collaboration graph

Public Member Functions

 DatabaseConfig ()
 Default constructor for DatabaseConfig.
 
 DatabaseConfig (const QString &host, int port, const QString &username, const QString &password, const QString &dbname)
 Parameterized constructor for DatabaseConfig. More...
 
void set (const QString &host, int port, const QString &username, const QString &password, const QString &dbname)
 Sets the database configuration parameters. More...
 

Public Attributes

int port
 Database port.
 
QString host
 Database host.
 
QString username
 Database username.
 
QString password
 Database password.
 
QString dbName
 Database name.
 

Detailed Description

Configuration settings for database connections.

This structure holds the necessary parameters for configuring a database connection, including host, port, username, password, and database name.

Constructor & Destructor Documentation

◆ DatabaseConfig()

DB::DatabaseConfig::DatabaseConfig ( const QString &  host,
int  port,
const QString &  username,
const QString &  password,
const QString &  dbname 
)
inline

Parameterized constructor for DatabaseConfig.

Parameters
hostDatabase host.
portDatabase port.
usernameDatabase username.
passwordDatabase password.
dbnameDatabase name.

Member Function Documentation

◆ set()

void DB::DatabaseConfig::set ( const QString &  host,
int  port,
const QString &  username,
const QString &  password,
const QString &  dbname 
)
inline

Sets the database configuration parameters.

Parameters
hostDatabase host.
portDatabase port.
usernameDatabase username.
passwordDatabase password.
dbnameDatabase name.

Referenced by DB::DatabaseManager::setDbSetting().

Here is the caller graph for this function:

The documentation for this struct was generated from the following file: