Debian Codegraph @

src/af/xap/win/xap_Win32Slurp.h

raw
1 /* AbiSource Application Framework
2 * Copyright (C) 1998 AbiSource, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301 USA.
18 */
19
20 #include <windows.h>
21 #include <ddeml.h>
22 class XAP_Win32APP;
23
24 class ABI_EXPORT XAP_Win32Slurp
25 {
26 public:
27 XAP_Win32Slurp(XAP_Win32App * pApp);
28 ~XAP_Win32Slurp(void);
29
30 HDDEDATA CALLBACK doCallback(UINT uType, UINT uFmt, HCONV hConv,
31 HSZ hsz1, HSZ hsz2, HDDEDATA hData,
32 DWORD dwData1, DWORD dwData2);
33 bool connectSlurper(void);
34 bool disconnectSlurper(void);
35 void processCommand(HDDEDATA hData);
36 void stuffRegistry(const char * szSuffix,
37 const char * szApplicationName,
38 LPCWSTR szExePathname,
39 const char * szContentType);
40
41 protected:
42 bool _askForStealFromAnotherApplication(void) const;
43 bool _askForUpdateExePathname(void) const;
44 bool _askForStealMimeFromAnotherApplication(void) const;
45
46 XAP_Win32App * m_pApp;
47 bool m_bInitialized;
48 HSZ m_hszServerName;
49 HSZ m_hszTopic;
50 DWORD m_idDdeServerInst;
51 };
52