/*
* Copyright 2009 Funambol, Inc.
*
* 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.
*/

/* $Id$ */

#include "ClearFirmwareUpdater.h"
#include <Logger/Logger.h>

//#include <WiMaxOmaDm.h>
//#include <WiMaxOmaDmType.h>

#include <string>

using namespace NS_DM_Client;
//typedef IFirmwareUpdater::EnumFirmwareStatus	EnumFirmwareStatus;

//static IndNotification g_indNotif = 0;

ClearFirmwareUpdater::ClearFirmwareUpdater()
{
//	g_indNotif = IndNotificationFromOmaClient;
}

ClearFirmwareUpdater::~ClearFirmwareUpdater()
{
}

bool ClearFirmwareUpdater::setFWUpdatedIndication()
{
// 	WIMAX_OMA_CLIENT_SESSION_P pOmaClientSession = 0;
// 	WIMAX_OMA_NOTIFICATION_TYPE notificationType = WIMAX_OMA_NOTIF_FUMO_DOWNLOAD_COMPLETE;
// 
// 	WIMAX_API_PACK_DOWNLOAD packDownloadInfo = { 0 }; // ??? should it be dynamically allocated
// 	packDownloadInfo.structureSize = sizeof(WIMAX_API_PACK_DOWNLOAD);
// 	packDownloadInfo.downloadedBytes = m_pkgSize;
// 	packDownloadInfo.totalBytes = m_pkgSize;
// 	packDownloadInfo.downloadStatus = true;
// 
// 	if (m_logger) LOG_DEBUG_(*m_logger, "SDK FUMO API notifier %p; params: session %p", g_indNotif, pOmaClientSession);
// 	if (g_indNotif)
// 	{
// 		g_indNotif(pOmaClientSession, notificationType, sizeof(packDownloadInfo), &packDownloadInfo);
// 	}
// 
 	return true;
}

bool ClearFirmwareUpdater::resetFWUpdatedIndication()
{
	return true;
}

