Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 79 lines (66 sloc) 2.689 kB
2f42024 @slegge Initial commit of BlackBerry Samples for Java
slegge authored
1 /*
2 * DesktopSample.h
3 *
4 * Copyright © 1998-2011 Research In Motion Limited
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 * Note: For the sake of simplicity, this sample application may not leverage
19 * resource bundles and resource strings. However, it is STRONGLY recommended
20 * that application developers make use of the localization features available
21 * within the BlackBerry development platform to ensure a seamless application
22 * experience across a variety of languages and geographies. For more information
23 * on localizing your application, please refer to the BlackBerry Java Development
24 * Environment Development Guide associated with this release.
25 */
26
27 // DesktopSample.h : Declaration of the CDesktopSample
28
29 #ifndef __DESKTOPSAMPLE_H_
30 #define __DESKTOPSAMPLE_H_
31
32 #include "resource.h" // main symbols
33 #include "ContactList.h"
34
35 /////////////////////////////////////////////////////////////////////////////
36 // CDesktopSample
37 class ATL_NO_VTABLE CDesktopSample :
38 public CComObjectRootEx<CComSingleThreadModel>,
39 public CComCoClass<CDesktopSample, &CLSID_DesktopSample>,
40 public IDispatchImpl<IRimExtension, &IID_IRimExtension, &LIBID_DESKTOPAPILib>
41 {
42 public:
43 CDesktopSample();
44
45 DECLARE_REGISTRY_RESOURCEID(IDR_DESKTOPSAMPLE)
46
47 DECLARE_PROTECT_FINAL_CONSTRUCT()
48
49 BEGIN_COM_MAP(CDesktopSample)
50 COM_INTERFACE_ENTRY(IRimExtension)
51 COM_INTERFACE_ENTRY(IDispatch)
52 END_COM_MAP()
53
54 // IDesktopSample
55 public:
56 virtual HRESULT __stdcall raw_GetExtensionInfo (
57 BSTR * extensionInfo );
58 virtual HRESULT __stdcall raw_Process (
59 IRimUtility * pRimUtility,
60 IRimDatabaseAccess * pRimDeviceAccess );
61 virtual HRESULT __stdcall raw_Configure (
62 IRimUtility * pRimUtility,
63 long hWnd );
64 virtual HRESULT __stdcall raw_GetErrorString (
65 int errorCode,
66 BSTR * extensionInfo );
67 private:
68 void AddField(IRimFieldsPtr fields, int fieldtag, CString data);
69 char * GetField(IRimFieldsPtr fields, int fieldtag);
70 private:
71 ContactList m_data;
72 };
73
74 // 'TypeLib' = s '{C4299B4F-CF7F-43F0-8B67-7054B7B380C0}'
75
76
77
78 #endif //__DESKTOPSAMPLE_H_
Something went wrong with that request. Please try again.