tstaskmonitor/client/s60/src/tsscreenshotclient.cpp
author hgs
Fri, 28 May 2010 16:17:03 +0300
changeset 96 5d243a69bdda
child 99 7aaf39b772ac
permissions -rw-r--r--
201021

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/

#include <s32mem.h>

#include "tsscreenshotclient.h"
#include "tsscreenshotclientimpl.h"

EXPORT_C CTsScreenshotClient *CTsScreenshotClient::NewL()
{
    CTsScreenshotClient* self = NewLC();
    CleanupStack::Pop(self);
    return self;
}

EXPORT_C CTsScreenshotClient *CTsScreenshotClient::NewLC()
{
    CTsScreenshotClient* self = new (ELeave) CTsScreenshotClient;
    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
}

void CTsScreenshotClient::ConstructL()
{
    iImpl = CTsScreenshotClientImpl::NewL();
}

CTsScreenshotClient::CTsScreenshotClient()
{
}

EXPORT_C CTsScreenshotClient::~CTsScreenshotClient()
{
    delete iImpl;
}

EXPORT_C TInt CTsScreenshotClient::RegisterScreenshot(CFbsBitmap *screenshot, TInt wgId, UpdatePriority priority)
{
    return iImpl->RegisterScreenshot(screenshot, wgId, priority);
}

EXPORT_C void CTsScreenshotClient::RegisterScreenshot(TRequestStatus &status, CFbsBitmap *screenshot, TInt wgId, UpdatePriority priority)
{
    iImpl->RegisterScreenshot(status, screenshot, wgId, priority);
}

EXPORT_C TInt CTsScreenshotClient::UnregisterScreenshot(TInt wgId)
{
    return iImpl->UnregisterScreenshot(wgId);
}