-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
27 lines (22 loc) · 905 Bytes
/
Copy pathmain.cpp
File metadata and controls
27 lines (22 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* @file main.cpp
* @brief Application entry point for the Gemini Native Agent.
*
* This file initializes the core Qt application framework, instantiates
* the primary GUI window, and hands over control to the Qt event loop.
*/
#include <QApplication>
#include "main_window.h"
int main(int argc, char *argv[]) {
// initialize the qt application object required for gui and event handling
QApplication app(argc, argv);
// persistent os registry setup for saving api keys and settings
QApplication::setOrganizationName("GeminiNativeAgent");
QApplication::setOrganizationDomain("gemininativeagent.local");
QApplication::setApplicationName("GeminiNativeAgent");
// create and display the primary application window
MainWindow mainWindow;
mainWindow.show();
// execute the application's main event loop and block until exit
return app.exec();
}