summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-gutenbrowser/main.cpp
blob: 71c836d3e57c47f1185218e3c932fca09f88c7cc (plain)
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

/***************************************************************************
                          main.cpp  -  description
                             -------------------
    begin                : Mon Jul 24 22:33:12 MDT 2000
    copyright            : (C) 2000 -2004 by llornkcor
    email                : ljp@llornkcor.com
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 ***************************************************************************/
#include "gutenbrowser.h"
#include <opie2/oapplicationfactory.h>

using namespace Opie::Core;

OPIE_EXPORT_APP( OApplicationFactory<Gutenbrowser> )

// #ifdef QT_QWS_NONOPIE
		
// #include <qpe/qpeapplication.h>
// #include "gutenbrowser.h"
// #include <qstring.h>
// // #include <stdio.h>
// // #include <stdlib.h>

// int main(int argc, char *argv[]){
// 		QPEApplication a(argc, argv);
// //     char * psz;
// //     if  (argc > 1) {
// //         for( int i=0; i < argc; i++) {
// //             psz = argv[i];
// //             if( psz[0] == '-' || psz[0] == '/' ) {
// // // The next character is the option.
// //                 switch( psz[1] )
// //                     {
// //                     case 'v': // help
// //                         printf("Gutenbrowser: "VERSION"\n");
// // //                        odebug << "Gutenbrowser: "VERSION << oendl; 
// //                           //                      return 0;
// //                         break;
// //                     case 't': // current time 19:34:20 04/03/00
// // //                        return 0;
// //                         break;
// //                     case 'f': //
// // //                         file_Name=argv[i+1];
// //                         break;
// //                     }
// //             }
// //         }
// //     }
// //        QNetworkProtocol::registerNetworkProtocol("http", new QNetworkProtocolFactory<Http>);
// //          qInitNetworkProtocols();//registers ftp protocol // for now
// 		Gutenbrowser *gutenbrowser=new Gutenbrowser();
// //        a.setMainWidget(gutenbrowser);
// 		a.showMainWidget(gutenbrowser,TRUE);
// 		gutenbrowser->showMaximized();
// 		gutenbrowser->show();
// 		return a.exec();
// }


// #endif