pgadmin4/runtime/pgAdmin4.h

45 lines
1020 B
C
Raw Normal View History

//////////////////////////////////////////////////////////////////////////
//
// pgAdmin 4 - PostgreSQL Tools
//
2018-01-05 04:42:49 -06:00
// Copyright (C) 2013 - 2018, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// pgAdmin4.h - Main application header
//
//////////////////////////////////////////////////////////////////////////
#ifndef PGADMIN4_H
#define PGADMIN4_H
2013-06-21 17:32:32 -05:00
// Include the Python header here as it needs to appear before any QT
// headers anywhere in the app.
2017-04-03 06:58:08 -05:00
#ifdef __MINGW32__
#include <cmath>
#endif
2013-06-21 17:32:32 -05:00
#include <Python.h>
// QT headers
#include <QtGlobal>
#if QT_VERSION >= 0x050000
#include <QtWidgets>
#else
#include <QApplication>
2016-02-23 03:10:49 -06:00
#include <QtGui>
#include <Qt/qurl.h>
#endif
// Application name
const QString PGA_APP_NAME = QString("pgAdmin 4");
// Global function prototypes
int main(int argc, char * argv[]);
bool PingServer(QUrl url);
void delay(int milliseconds);
void cleanup();
unsigned long sdbm(unsigned char *str);
bool shutdownServer(QUrl url);
#endif // PGADMIN4_H