platform_name = 'post', 'story', 'channel'일 경우 sns으로 변경 git-svn-id: svn://192.168.0.12/source@244 8346c931-da38-4b9b-9d4c-e48b93cbd075
40 lines
622 B
C++
40 lines
622 B
C++
#include <QApplication>
|
|
#include <QMessageBox>
|
|
|
|
#include "mainwindow.h"
|
|
#include "scolumn.h"
|
|
|
|
MainWindow *g_pMain;
|
|
|
|
MainWindow *GetMainWindow()
|
|
{
|
|
return g_pMain;
|
|
}
|
|
|
|
SColumn g_column;
|
|
SColumn GetColumn()
|
|
{
|
|
return g_column;
|
|
}
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
if (g_column.reload())
|
|
{
|
|
MainWindow w;
|
|
g_pMain = &w;
|
|
w.show();
|
|
return a.exec();
|
|
}
|
|
else
|
|
{
|
|
QMessageBox msg;
|
|
msg.setText("Can not read column data...");
|
|
msg.exec();
|
|
return 0;
|
|
}
|
|
return 0;
|
|
}
|