-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.cpp
80 lines (75 loc) · 2.12 KB
/
main.cpp
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* File: main.cpp
* Author: Will Flores
* Usage:
* Description: This file defines the main function for the program to enter.
* Environment: Windows 7, 64 bit build
* Notes:
* Revisions: NONE
*
* Created on January 19, 2012, 10:39 AM
*/
#include <QtGui/QApplication>
#include <stdlib.h>
#include "adprog.h"
/***********************************************************************
* Module Name: main
* Original Author: Will
* Module Creation Date: January 19, 2012
* Description: This is the main function for the AD Program.
*
* Calling Arguments:
* Name Input/Output Type Description
* argc Input int The count of the arguments passed into
* the program.
* argv Input char** The array of strings of arguments.
*
* Required Files/Databases:
* None
*
* Non System Routines Called:
* Name Description
* ImportUsers Loads the constructor for the AD Program.
*
* Return Value:
* Type Description
* int The status to the operating system when the program exits.
*
* Error Codes/Exceptions:
* EXIT_SUCCESS - When the program exits successfully, returns a 0.
* EXIT_FAILURE - When the program is terminated before reaching the main
* window.
*
* OS Specific Assumptions if any:
* None
*
* Local Variables:
* Type Name Description
* ImportUsers* obj The constructor for the AD program to be loaded.
*
* Global Variables Used:
* Type Name Origin Description
* NONE
* Constant and Macro Substitutions:
* Name Header File Description
*
* Modification History:
* Date Developer Action
***********************************************************************/
int main(int argc, char *argv[]) {
/* The entry point for the Qt Gui Program. */
QApplication app(argc, argv);
/* create and show your widgets here */
ImportUsers * obj;
/* Load main window for program */
try {
obj = new ImportUsers();
}
catch (int exception) {
/* The program ternminated prematurely. */
return EXIT_FAILURE;
}
/* Show the GUI */
obj->show();
return app.exec();
}