fotaapplication/fotaserver/src/fsview.cpp
author hgs
Fri, 06 Aug 2010 18:29:23 +0530
changeset 55 1c556dee8eb1
parent 51 2e64dc50f295
child 66 08c8318ec9cb
permissions -rw-r--r--
201031
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
51
2e64dc50f295 201025_02
hgs
parents:
diff changeset
     1
/*
2e64dc50f295 201025_02
hgs
parents:
diff changeset
     2
 * Copyright (c) 2000 Nokia Corporation and/or its subsidiary(-ies). 
2e64dc50f295 201025_02
hgs
parents:
diff changeset
     3
 * All rights reserved.
2e64dc50f295 201025_02
hgs
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
2e64dc50f295 201025_02
hgs
parents:
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
2e64dc50f295 201025_02
hgs
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
2e64dc50f295 201025_02
hgs
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
2e64dc50f295 201025_02
hgs
parents:
diff changeset
     8
 *
2e64dc50f295 201025_02
hgs
parents:
diff changeset
     9
 * Initial Contributors:
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    10
 * Nokia Corporation - initial contribution.
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    11
 *
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    12
 * Contributors:
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    13
 *
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    14
 * Description: Implementation of applicationmanagement components
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    15
 *
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    16
 */
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    17
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    18
#include "fsview.h"
55
hgs
parents: 51
diff changeset
    19
#include "FotaServer.h"
51
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    20
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    21
// ------------------------------------------------------------------------------------------------
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    22
// FSView::FSView()
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    23
// ------------------------------------------------------------------------------------------------
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    24
FSView::FSView()
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    25
    {
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    26
    
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    27
    }
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    28
// ------------------------------------------------------------------------------------------------
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    29
// FSView::~FSView()
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    30
// ------------------------------------------------------------------------------------------------
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    31
FSView::~FSView()
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    32
    {
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    33
    
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    34
    }
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    35
// ------------------------------------------------------------------------------------------------
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    36
// FSView::eventFilter()
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    37
// ------------------------------------------------------------------------------------------------
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    38
bool FSView::eventFilter(QObject *object, QEvent *event)
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    39
{   
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    40
    switch (event->type())
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    41
        {
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    42
        case QEvent::ApplicationActivate:
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    43
            {
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    44
//            RDEBUG( "eventFilter: QEvent::ApplicationActivate start" );
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    45
	    iServer->SetVisible(ETrue);
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    46
//            RDEBUG( "eventFilter: end" );
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    47
            break;
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    48
            }
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    49
        default:
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    50
            break;
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    51
        }
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    52
return HbView::eventFilter(object, event); 
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    53
}
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    54
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    55
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    56
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    57
void FSView::SetServer(CFotaServer * aServer)
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    58
{
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    59
	iServer = aServer;
2e64dc50f295 201025_02
hgs
parents:
diff changeset
    60
}