#include "mainwindow.h"
#include <QApplication>
#include <vector>
#include <memory>
#include <cstdint>

// Register types for Qt's meta-object system (needed for queued signals)
Q_DECLARE_METATYPE(std::shared_ptr<std::vector<uint8_t>>)

int main(int argc, char *argv[]) {
    QApplication app(argc, argv);
    
    // Register custom types for use in queued signal/slot connections
    qRegisterMetaType<std::shared_ptr<std::vector<uint8_t>>>("std::shared_ptr<std::vector<uint8_t>>");
    
    app.setApplicationName("SCAR Chat");
    app.setOrganizationName("SCAR");
    app.setApplicationVersion("1.0.0");
    
    scar::MainWindow window;
    window.show();
    
    return app.exec();
}
