using auto_HT_Pane for managing HTPane ownership.
git-svn-id: svn://10.0.0.236/trunk@11693 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
900e52ffbe
commit
2311f9eb2b
@ -30,42 +30,42 @@ CRDFNotificationHandler::CreateNotificationStruct()
|
||||
return notifyStruct;
|
||||
}
|
||||
|
||||
HT_Pane
|
||||
auto_ptr<_HT_PaneStruct>
|
||||
CRDFNotificationHandler::CreateHTPane()
|
||||
{
|
||||
HT_Notification notifyStruct = CreateNotificationStruct();
|
||||
if (notifyStruct)
|
||||
return HT_NewPane(notifyStruct);
|
||||
return auto_ptr<_HT_PaneStruct>(HT_NewPane(notifyStruct));
|
||||
else
|
||||
return NULL;
|
||||
return auto_ptr<_HT_PaneStruct>();
|
||||
}
|
||||
|
||||
HT_Pane
|
||||
auto_ptr<_HT_PaneStruct>
|
||||
CRDFNotificationHandler::CreateHTPane ( HT_Resource inResource )
|
||||
{
|
||||
return CreateHTPane ( HT_GetRDFResource(inResource) );
|
||||
return auto_ptr<_HT_PaneStruct>(CreateHTPane(HT_GetRDFResource(inResource)));
|
||||
}
|
||||
|
||||
HT_Pane
|
||||
auto_ptr<_HT_PaneStruct>
|
||||
CRDFNotificationHandler::CreateHTPane ( RDF_Resource inResource )
|
||||
{
|
||||
HT_Notification notifyStruct = CreateNotificationStruct();
|
||||
if (notifyStruct)
|
||||
return HT_PaneFromResource(inResource, notifyStruct, false, true, true);
|
||||
return auto_ptr<_HT_PaneStruct>(HT_PaneFromResource(inResource, notifyStruct, false, true, true));
|
||||
else
|
||||
return NULL;
|
||||
return auto_ptr<_HT_PaneStruct>();
|
||||
}
|
||||
|
||||
HT_Pane
|
||||
auto_ptr<_HT_PaneStruct>
|
||||
CRDFNotificationHandler::CreateHTPane ( const char* inURL, unsigned int inCount,
|
||||
char** inParamNames, char** inParamValues )
|
||||
{
|
||||
HT_Notification notifyStruct = CreateNotificationStruct();
|
||||
if (notifyStruct)
|
||||
return HT_PaneFromURL ( NULL, const_cast<char*>(inURL), NULL, notifyStruct, false, inCount,
|
||||
inParamNames, inParamValues );
|
||||
return auto_ptr<_HT_PaneStruct>(HT_PaneFromURL(NULL, const_cast<char*>(inURL), NULL, notifyStruct, false, inCount,
|
||||
inParamNames, inParamValues));
|
||||
else
|
||||
return NULL;
|
||||
return auto_ptr<_HT_PaneStruct>();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@ -27,16 +27,17 @@
|
||||
#pragma once
|
||||
|
||||
#include "htrdf.h"
|
||||
#include "auto_HT_pane.h"
|
||||
|
||||
class CRDFNotificationHandler
|
||||
{
|
||||
protected:
|
||||
|
||||
virtual HT_Pane CreateHTPane ( HT_Resource inResource ) ;
|
||||
virtual HT_Pane CreateHTPane ( RDF_Resource inResource ) ;
|
||||
virtual HT_Pane CreateHTPane ( const char* inURL, unsigned int inCount,
|
||||
virtual auto_ptr<_HT_PaneStruct> CreateHTPane ( HT_Resource inResource ) ;
|
||||
virtual auto_ptr<_HT_PaneStruct> CreateHTPane ( RDF_Resource inResource ) ;
|
||||
virtual auto_ptr<_HT_PaneStruct> CreateHTPane ( const char* inURL, unsigned int inCount,
|
||||
char** inParamNames, char** inParamValues ) ;
|
||||
virtual HT_Pane CreateHTPane();
|
||||
virtual auto_ptr<_HT_PaneStruct> CreateHTPane();
|
||||
|
||||
virtual HT_Notification CreateNotificationStruct();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user