本文整理汇总了C++中zimbra::util::ScopedInterface::getref方法的典型用法代码示例。如果您正苦于以下问题:C++ ScopedInterface::getref方法的具体用法?C++ ScopedInterface::getref怎么用?C++ ScopedInterface::getref使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类zimbra::util::ScopedInterface
的用法示例。
在下文中一共展示了ScopedInterface::getref方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AdminAuth
void AdminAuth()
{
Zimbra::Rpc::AdminAuthRequest authRequest(lpAdminUser, lpAdminPwd, L"");
Zimbra::Rpc::AdminConnection *m_pAdminConnection;
Zimbra::Util::ScopedInterface<IXMLDOMDocument2> pResponseXml;
m_pAdminConnection = new Zimbra::Rpc::AdminConnection(lpServerAddress, nAdminPort, TRUE, 0,
L"");
m_pAdminConnection->SetCurrentUser((LPWSTR)lpAccountUser);
m_pAdminConnection->SendRequest(authRequest, pResponseXml.getref());
}
示例2: UserAuth
void UserAuth()
{
Zimbra::Util::ScopedInterface<IXMLDOMDocument2> pResponseXml;
m_pConnection = new Zimbra::Rpc::Connection(L"migration", lpServerAddress, nPort, false, 0,
L"");
m_pConnection->SetCurrentUser((LPWSTR)lpAccountUser);
Zimbra::Rpc::AuthRequest authRequest(lpAccountUser, lpAccountUserPwd, lpServerAddress);
m_pConnection->SendRequest(authRequest, pResponseXml.getref());
Zimbra::Util::ScopedPtr<Zimbra::Rpc::Response> pResponse(
Zimbra::Rpc::Response::Manager::NewResponse(pResponseXml.get()));
}