tstaskmonitor/client/s60/src/tstasksettings_p.cpp
changeset 102 8b8b34fa9751
parent 100 0920c6a9b6c8
child 106 e78d6e055a5b
--- a/tstaskmonitor/client/s60/src/tstasksettings_p.cpp	Tue Jun 29 10:20:30 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
-/*
-* 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 "tstasksettings_p.h"
-
-#include <fbs.h>
-#include <coecntrl.h>
-#include <QScopedPointer>
-#include <QApplication>
-#include <QDesktopWidget>
-
-#include "tsscreenshotclient.h"
-#include "tstaskmonitorglobals.h"
-
-TsTaskSettingsPrivate::TsTaskSettingsPrivate() : mClient(0)
-{
-    QT_TRAP_THROWING(mClient = CTsScreenshotClient::NewL());
-}
-
-TsTaskSettingsPrivate::~TsTaskSettingsPrivate()
-{
-    delete mClient;
-}
-
-bool TsTaskSettingsPrivate::registerScreenshot(const QPixmap &screenshot)
-{    
-    QScopedPointer<CFbsBitmap> bitmap(screenshot.toSymbianCFbsBitmap());
-    if (bitmap.isNull()) 
-        return false;
-
-    return KErrNone == mClient->RegisterScreenshot(bitmap.data(), wgId());
-}
-
-bool TsTaskSettingsPrivate::unregisterScreenshot()
-{
-    return KErrNone == mClient->UnregisterScreenshot(wgId());
-}
-
-bool TsTaskSettingsPrivate::setVisibility(bool visibility)
-{
-    return (KErrNone == mClient->SetVisibility(wgId(), visibility ? Visible : Invisible));
-}
-
-int TsTaskSettingsPrivate::wgId()
-{
-    return QApplication::desktop()->winId()->ControlEnv()->RootWin().WindowGroupId();
-}