Reorganize sources into Src/ and add README

This commit is contained in:
2026-09-13 10:47:56 +08:00
parent 2191c1aed4
commit 1c935b424d
163 changed files with 1131 additions and 307 deletions
+33
View File
@@ -0,0 +1,33 @@
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "NotificationThreadUnit.h"
#include "NotificationFormUnit.h"
#pragma package(smart_init)
//---------------------------------------------------------------------------
__fastcall TNotificationThread::TNotificationThread(bool CreateSuspended, TForm* pForm)
: TThread(CreateSuspended)
{
m_pForm = pForm;
}
//---------------------------------------------------------------------------
void __fastcall TNotificationThread::Execute()
{
if( ((TNotificationForm *)m_pForm)->ParseJson() &&
((TNotificationForm *)m_pForm)->LoadImg() )
{
PostMessage(Application->MainForm->Handle, UM_NOTIFICATION,
NOTIFICATION_SHOW_FORM , 0 );
}else{
PostMessage(Application->MainForm->Handle, UM_NOTIFICATION,
NOTIFICATION_NO_JSONDATA, 0 );
}
}
//---------------------------------------------------------------------------