-
Notifications
You must be signed in to change notification settings - Fork 0
/
MessengerService.cxx
68 lines (58 loc) · 1.97 KB
/
MessengerService.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
* Outlook Integration library.
*
* Copyright (c) 2016, Ixperta Solutions s.r.o.
*
* This work is based on
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "MessengerService.h"
EXTERN_C const GUID DECLSPEC_SELECTANY IID_IMessengerService
= { 0x2E50547C, 0xA8AA, 0x4f60, { 0xB5, 0x7E, 0x1F, 0x41, 0x47, 0x11, 0x00, 0x7B } };
MessengerService::MessengerService(IMessenger *messenger)
: _messenger(messenger)
{
_messenger->AddRef();
}
MessengerService::~MessengerService()
{
_messenger->Release();
}
STDMETHODIMP MessengerService::get_MyFriendlyName(BSTR *pbstrName)
{
return _messenger->get_MyFriendlyName(pbstrName);
}
STDMETHODIMP MessengerService::get_MySigninName(BSTR *pbstrName)
{
return _messenger->get_MySigninName(pbstrName);
}
STDMETHODIMP MessengerService::get_MyStatus(MISTATUS *pmiStatus)
{
return _messenger->get_MyStatus(pmiStatus);
}
STDMETHODIMP MessengerService::get_Property(MSERVICEPROPERTY ePropType, VARIANT *pvPropVal)
STDMETHODIMP_E_NOTIMPL_STUB
STDMETHODIMP MessengerService::get_ServiceID(BSTR *pbstrID)
{
return _messenger->get_MyServiceId(pbstrID);
}
STDMETHODIMP MessengerService::get_ServiceName(BSTR *pbstrServiceName)
{
return _messenger->get_MyServiceName(pbstrServiceName);
}
STDMETHODIMP MessengerService::put_Property(MSERVICEPROPERTY ePropType, VARIANT vPropVal)
STDMETHODIMP_E_NOTIMPL_STUB