]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/utilsexc.cpp
Updating with Vadim's API changes.
[wxWidgets.git] / src / palmos / utilsexc.cpp
CommitLineData
ffecfa5a 1/////////////////////////////////////////////////////////////////////////////
e2731512 2// Name: src/palmos/utilsexec.cpp
5445a26c 3// Purpose: wxExecute implementation for PalmOS
e2731512 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e2731512 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// declarations
14// ============================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
ffecfa5a
JS
20// For compilers that support precompilation, includes "wx.h".
21#include "wx/wxprec.h"
22
23#ifdef __BORLANDC__
24 #pragma hdrstop
25#endif
26
27#ifndef WX_PRECOMP
28 #include "wx/utils.h"
29 #include "wx/app.h"
30 #include "wx/intl.h"
31 #include "wx/log.h"
530ecef0
WS
32 #if wxUSE_STREAMS
33 #include "wx/stream.h"
34 #endif
02761f6c 35 #include "wx/module.h"
ffecfa5a
JS
36#endif
37
ffecfa5a
JS
38#include "wx/process.h"
39
40#include "wx/apptrait.h"
41
ffecfa5a
JS
42#include <ctype.h>
43
44#include <stdio.h>
45#include <stdlib.h>
46#include <string.h>
47
48#if wxUSE_IPC
49 #include "wx/dde.h" // for WX_DDE hack in wxExecute
50#endif // wxUSE_IPC
51
52// ----------------------------------------------------------------------------
53// constants
54// ----------------------------------------------------------------------------
55
56// ----------------------------------------------------------------------------
57// this module globals
58// ----------------------------------------------------------------------------
59
60// we need to create a hidden window to receive the process termination
61// notifications and for this we need a (Win) class name for it which we will
62// register the first time it's needed
63static const wxChar *wxMSWEXEC_WNDCLASSNAME = wxT("_wxExecute_Internal_Class");
64static const wxChar *gs_classForHiddenWindow = NULL;
65
66// ----------------------------------------------------------------------------
67// private types
68// ----------------------------------------------------------------------------
69
70// ============================================================================
71// implementation
72// ============================================================================
73
74// ============================================================================
75// wxExecute functions family
76// ============================================================================
77
78#if wxUSE_IPC
79
80// connect to the given server via DDE and ask it to execute the command
81static bool wxExecuteDDE(const wxString& ddeServer,
82 const wxString& ddeTopic,
83 const wxString& ddeCommand)
84{
85 return false;
86}
87
88#endif // wxUSE_IPC
89
90long wxExecute(const wxString& cmd, int flags, wxProcess *handler)
91{
92 return 0;
93}
94
95long wxExecute(wxChar **argv, int flags, wxProcess *handler)
96{
97 return 0;
98}