/*###############################################################################
# Linux Management Providers (LMP), Software Update provider package
# Copyright (C) 2009 Nazarov Nodir, TUIT <nazarov.nodir@gmail.com>
#
# This program is being developed under the "OpenDRIM" project.
# The "OpenDRIM" project web page: http://opendrim.sourceforge.net
# The "OpenDRIM" project mailing list: opendrim@googlegroups.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2
# of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
#################################################################################

#################################################################################
# To contributors, please leave your contact information in this section
# AND comment your changes in the source code.
#
# Modified by 2009 Shakhrom RUSTAMOV, TUIT <shahrombek@gmail.com>
# Modified by 2009 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr>
###############################################################################*/

#ifndef OPENDRIM_SOFTWAREUPDATEHOSTEDSERVICEACCESS_H_
#define OPENDRIM_SOFTWAREUPDATEHOSTEDSERVICEACCESS_H_

#include "SoftwareUpdate_Common.h"

#include "OpenDRIM_SoftwareUpdateHostedService.h"
#include "assocOpenDRIM_SoftwareUpdateHostedService.h"

int SoftwareUpdate_OpenDRIM_SoftwareUpdateHostedService_load(const CMPIBroker* broker, string& errorMessage);

int SoftwareUpdate_OpenDRIM_SoftwareUpdateHostedService_unload(string& errorMessage);

int SoftwareUpdate_OpenDRIM_SoftwareUpdateHostedService_retrieve(const CMPIBroker* broker, const CMPIContext* ctx, vector<OpenDRIM_SoftwareUpdateHostedService>& instances, const char** properties, string& errorMessage, const string& discriminant);

int SoftwareUpdate_OpenDRIM_SoftwareUpdateHostedService_getInstance(const CMPIBroker* broker, const CMPIContext* ctx, OpenDRIM_SoftwareUpdateHostedService& instance, const char** properties, string& errorMessage);

int SoftwareUpdate_OpenDRIM_SoftwareUpdateHostedService_setInstance(const CMPIBroker* broker, const CMPIContext* ctx, const OpenDRIM_SoftwareUpdateHostedService& newInstance, const OpenDRIM_SoftwareUpdateHostedService& oldInstance, const char** properties, string& errorMessage);

int SoftwareUpdate_OpenDRIM_SoftwareUpdateHostedService_createInstance(const CMPIBroker* broker, const CMPIContext* ctx, const OpenDRIM_SoftwareUpdateHostedService& instance, string& errorMessage);

int SoftwareUpdate_OpenDRIM_SoftwareUpdateHostedService_deleteInstance(const CMPIBroker* broker, const CMPIContext* ctx, const OpenDRIM_SoftwareUpdateHostedService& instance, string& errorMessage);

int SoftwareUpdate_OpenDRIM_SoftwareUpdateHostedService_associatorAntecedentToDependent(const CMPIBroker* broker, const CMPIContext* ctx, const Instance& Antecedent_instance, const char** properties, vector<Instance>& Dependent_associatedInstances, string& errorMessage, const string& discriminant);

int SoftwareUpdate_OpenDRIM_SoftwareUpdateHostedService_associatorDependentToAntecedent(const CMPIBroker* broker, const CMPIContext* ctx, const Instance& Dependent_instance, const char** properties, vector<Instance>& Antecedent_associatedInstances, string& errorMessage, const string& discriminant);

int SoftwareUpdate_OpenDRIM_SoftwareUpdateHostedService_referenceAntecedentToDependent(const CMPIBroker* broker, const CMPIContext* ctx, const Instance& Antecedent_instance, const vector<Instance>& Dependent_instances, vector<OpenDRIM_SoftwareUpdateHostedService>& OpenDRIM_SoftwareUpdateHostedService_instances, const char** properties, string& errorMessage, const string& discriminant);

int SoftwareUpdate_OpenDRIM_SoftwareUpdateHostedService_referenceDependentToAntecedent(const CMPIBroker* broker, const CMPIContext* ctx, const Instance& Dependent_instance, const vector<Instance>& Antecedent_instances, vector<OpenDRIM_SoftwareUpdateHostedService>& OpenDRIM_SoftwareUpdateHostedService_instances, const char** properties, string& errorMessage, const string& discriminant);

int SoftwareUpdate_OpenDRIM_SoftwareUpdateHostedService_populate(OpenDRIM_SoftwareUpdateHostedService& instance, string& errorMessage);

#endif /*OPENDRIM_SOFTWAREUPDATEHOSTEDSERVICEACCESS_H_*/
