Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6725 siemargl 1
// -*- C++ -*-
2
/*
3
  Copyright (c) 1990-2000 Info-ZIP.  All rights reserved.
4
 
5
  See the accompanying file LICENSE, version 2000-Apr-09 or later
6
  (the contents of which are also included in unzip.h) for terms of use.
7
  If, for some reason, all these files are missing, the Info-ZIP license
8
  also may be found at:  ftp://ftp.info-zip.org/pub/infozip/license.html
9
*/
10
//
11
// WARNING: This is C++, not C!  GNU C is not supported here!
12
//
13
// beos_init.cpp
14
//
15
// BeOS-specific C++ routines for use with Info-ZIP's UnZip 5.30 or later.
16
//
17
// This is necessary because we need to have an app_server connection to be
18
// able to ask the system to assign a MIME type to an un-typed file.  Strange
19
// but true (the update_mime_info() call needs to send/receive messages).
20
//
21
// If you're writing your own Zip application, you probably DO NOT want to
22
// include this file!
23
 
24
#include 
25
 
26
#ifdef SFX
27
const static char *unzip_signature = "application/x-vnd.Info-ZIP.UnZipSFX";
28
#else
29
const static char *unzip_signature = "application/x-vnd.Info-ZIP.UnZip";
30
#endif
31
 
32
extern "C" int main_stub( int argc, char *argv[] );
33
 
34
int main( int argc, char **argv )
35
{
36
    BApplication app( unzip_signature );
37
 
38
    int retval = main_stub( argc, argv );
39
 
40
    app.PostMessage( B_QUIT_REQUESTED );
41
    app.Run();
42
 
43
    return retval;
44
}