Supress compiler warning on unimplemented methods
+ Expose struct trough member variable + Try to enforce consistent naming
This commit is contained in:
		
							parent
							
								
									b7308c18fb
								
							
						
					
					
						commit
						5af2be130d
					
				| @ -93,7 +93,7 @@ private: | |||||||
|      * @param Name of the area which buffer is modified. |      * @param Name of the area which buffer is modified. | ||||||
|      * @param Formatted QString to be added into the buffer. |      * @param Formatted QString to be added into the buffer. | ||||||
|      */ |      */ | ||||||
|     void updateAreaBuffer(const QString& f_area, const QString& f_entry); |     void updateAreaBuffer(const QString& f_areaName, const QString& f_entry); | ||||||
| 
 | 
 | ||||||
|     /**
 |     /**
 | ||||||
|      * @brief Returns the buffer of a respective area. Primarily used by the Discord Webhook. |      * @brief Returns the buffer of a respective area. Primarily used by the Discord Webhook. | ||||||
|  | |||||||
| @ -35,6 +35,7 @@ public: | |||||||
|       QString message; |       QString message; | ||||||
|       AreaData* area; |       AreaData* area; | ||||||
|     }; |     }; | ||||||
|  |     m_content content; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
| @ -55,6 +56,7 @@ public: | |||||||
|         QString targetHDID; |         QString targetHDID; | ||||||
|         AreaData* area; |         AreaData* area; | ||||||
|     }; |     }; | ||||||
|  |     m_content content; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
| @ -72,12 +74,14 @@ public: | |||||||
|         QString cmdArgs; |         QString cmdArgs; | ||||||
|         AreaData* area; |         AreaData* area; | ||||||
|     }; |     }; | ||||||
|  |     m_content content; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * @brief Convenience class to transport login attempt information to the logger. |  * @brief Convenience class to transport login attempt information to the logger. | ||||||
|  */ |  */ | ||||||
| class LoginLog { | class LoginLog { | ||||||
|  | public: | ||||||
|     explicit LoginLog(); |     explicit LoginLog(); | ||||||
|     struct m_content { |     struct m_content { | ||||||
|         QString charName; |         QString charName; | ||||||
| @ -87,19 +91,22 @@ class LoginLog { | |||||||
|         bool success; |         bool success; | ||||||
|         QString modname; |         QString modname; | ||||||
|     }; |     }; | ||||||
|  |     m_content content; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * @brief Convenience class to transport connection event information to the logger. |  * @brief Convenience class to transport connection event information to the logger. | ||||||
|  */ |  */ | ||||||
| class ConnectionLog { | class ConnectionLog { | ||||||
|  | public: | ||||||
|     explicit ConnectionLog(); |     explicit ConnectionLog(); | ||||||
|     struct m_conntent { |     struct m_content { | ||||||
|         QString ip_address; |         QString ip_address; | ||||||
|         QString hdid; |         QString hdid; | ||||||
|         QString ipid; |         QString ipid; | ||||||
|         bool success; |         bool success; | ||||||
|     }; |     }; | ||||||
|  |     m_content content; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| #endif // U_LOGGER_DATATYPES_H
 | #endif // U_LOGGER_DATATYPES_H
 | ||||||
|  | |||||||
| @ -25,42 +25,42 @@ ULogger::ULogger(QObject* parent) : | |||||||
| 
 | 
 | ||||||
| void ULogger::logIC(MessageLog f_log) | void ULogger::logIC(MessageLog f_log) | ||||||
| { | { | ||||||
| 
 |     Q_UNUSED(f_log) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ULogger::logOOC(MessageLog f_log) | void ULogger::logOOC(MessageLog f_log) | ||||||
| { | { | ||||||
| 
 |     Q_UNUSED(f_log) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ULogger::logLogin(LoginLog f_log) | void ULogger::logLogin(LoginLog f_log) | ||||||
| { | { | ||||||
| 
 |     Q_UNUSED(f_log) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ULogger::logCMD(CommandLog f_log) | void ULogger::logCMD(CommandLog f_log) | ||||||
| { | { | ||||||
| 
 |     Q_UNUSED(f_log) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ULogger::logKick(ModerativeLog f_log) | void ULogger::logKick(ModerativeLog f_log) | ||||||
| { | { | ||||||
| 
 |     Q_UNUSED(f_log) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ULogger::logBan(ModerativeLog f_log) | void ULogger::logBan(ModerativeLog f_log) | ||||||
| { | { | ||||||
| 
 |     Q_UNUSED(f_log) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ULogger::logConnectionAttempt(ConnectionLog f_log) | void ULogger::logConnectionAttempt(ConnectionLog f_log) | ||||||
| { | { | ||||||
| 
 |     Q_UNUSED(f_log) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ULogger::updateAreaBuffer(const QString& f_area, const QString& f_entry) | void ULogger::updateAreaBuffer(const QString& f_areaName, const QString& f_entry) | ||||||
| { | { | ||||||
|     QQueue<QString>f_buffer = m_bufferMap.value(f_area); |     QQueue<QString>f_buffer = m_bufferMap.value(f_areaName); | ||||||
|     if (f_buffer.length() < ConfigManager::logBuffer()) { |     if (f_buffer.length() < ConfigManager::logBuffer()) { | ||||||
|         f_buffer.enqueue(f_entry); |         f_buffer.enqueue(f_entry); | ||||||
|     } |     } | ||||||
| @ -68,7 +68,7 @@ void ULogger::updateAreaBuffer(const QString& f_area, const QString& f_entry) | |||||||
|         f_buffer.dequeue(); |         f_buffer.dequeue(); | ||||||
|         f_buffer.enqueue(f_entry); |         f_buffer.enqueue(f_entry); | ||||||
|     } |     } | ||||||
|     m_bufferMap.insert(f_area, f_buffer); |     m_bufferMap.insert(f_areaName, f_buffer); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| QQueue<QString> ULogger::buffer(const QString& f_areaName) | QQueue<QString> ULogger::buffer(const QString& f_areaName) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Salanto
						Salanto