1 mike 1.1 /*
2 **==============================================================================
3 **
4 ** Open Management Infrastructure (OMI)
5 **
6 ** Copyright (c) Microsoft Corporation
7 **
8 ** Licensed under the Apache License, Version 2.0 (the "License"); you may not
9 ** use this file except in compliance with the License. You may obtain a copy
10 ** of the License at
11 **
12 ** http://www.apache.org/licenses/LICENSE-2.0
13 **
14 ** THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 ** KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
16 ** WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
17 ** MERCHANTABLITY OR NON-INFRINGEMENT.
18 **
19 ** See the Apache 2 License for the specific language governing permissions
20 ** and limitations under the License.
21 **
22 mike 1.1 **==============================================================================
23 */
24
25 #ifndef _micxx_context_h
26 #define _micxx_context_h
27
28 #include <MI.h>
29 #include "linkage.h"
30 #include "instance.h"
31
32 MI_BEGIN_NAMESPACE
33
34 class CIM_Error_Class;
35
36 class MICXX_LINKAGE Context
37 {
38 public:
39
40 Context(
41 MI_Context* context);
42
43 mike 1.1 Context(
44 MI_Context* context,
45 MI_Result* result);
46
47 Context(
48 const Context& x);
49
50 MI_Result Post(
51 const Instance& instance);
52
53 MI_Result Post(
54 const Instance& indication,
55 MI_Uint32 subscriptionIDCount,
56 const String& bookmark);
57
58 MI_Result Post(MI_Result result);
59
60 MI_Result Post(
61 MI_Result result,
62 const String& message);
63
64 mike 1.1 MI_Result Post(
65 MI_Result result,
66 const CIM_Error_Class& instance);
67
68 MI_Result RequestUnload();
69
70 MI_Result RefuseUnload();
71
|