videocollection/tsrc/stubs/src/videolisttoolbar.cpp
author hgs
Fri, 15 Oct 2010 16:29:10 +0300
changeset 67 72c709219fcd
parent 66 adb51f74b890
permissions -rw-r--r--
201041
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
63
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:   VideoListToolbar class source code
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
66
hgs
parents: 63
diff changeset
    18
// Version : %version: 2 %
63
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
// INCLUDE FILES
hgs
parents:
diff changeset
    21
#include <qactiongroup.h>
hgs
parents:
diff changeset
    22
#include <hbaction.h>
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
#include "videolisttoolbar.h"
hgs
parents:
diff changeset
    25
#include "videolisttoolbardata.h"
hgs
parents:
diff changeset
    26
#include "videolistview.h"
hgs
parents:
diff changeset
    27
#include "videocollectionuiloader.h"
hgs
parents:
diff changeset
    28
#include "videocollectioncommon.h"
hgs
parents:
diff changeset
    29
#include "videocollectionviewutils.h"
hgs
parents:
diff changeset
    30
hgs
parents:
diff changeset
    31
int VideoListToolbarData::mViewStateChangedCount(0);
hgs
parents:
diff changeset
    32
VideoCollectionCommon::TCollectionLevels VideoListToolbarData::mViewStateChangedLevel(
hgs
parents:
diff changeset
    33
    VideoCollectionCommon::ELevelInvalid);
hgs
parents:
diff changeset
    34
bool VideoListToolbarData::mViewStateChangedNoVideos(false);
hgs
parents:
diff changeset
    35
bool VideoListToolbarData::mViewStateChangedModelReady(false);
hgs
parents:
diff changeset
    36
hgs
parents:
diff changeset
    37
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
    38
// Constructor
hgs
parents:
diff changeset
    39
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
    40
//
hgs
parents:
diff changeset
    41
VideoListToolbar::VideoListToolbar(VideoCollectionUiLoader* uiLoader, VideoListView* parent)
hgs
parents:
diff changeset
    42
    : QObject(parent)
hgs
parents:
diff changeset
    43
    , mUiUtils(VideoCollectionViewUtils::instance())
hgs
parents:
diff changeset
    44
{
hgs
parents:
diff changeset
    45
    Q_UNUSED(uiLoader);
hgs
parents:
diff changeset
    46
}
hgs
parents:
diff changeset
    47
hgs
parents:
diff changeset
    48
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
    49
// Destructor
hgs
parents:
diff changeset
    50
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
    51
//
hgs
parents:
diff changeset
    52
VideoListToolbar::~VideoListToolbar()
hgs
parents:
diff changeset
    53
{
hgs
parents:
diff changeset
    54
}
hgs
parents:
diff changeset
    55
hgs
parents:
diff changeset
    56
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
    57
// initialize()
hgs
parents:
diff changeset
    58
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
    59
//
hgs
parents:
diff changeset
    60
void VideoListToolbar::initialize()
hgs
parents:
diff changeset
    61
{
hgs
parents:
diff changeset
    62
}
hgs
parents:
diff changeset
    63
hgs
parents:
diff changeset
    64
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
    65
// viewStateChanged()
hgs
parents:
diff changeset
    66
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
    67
//
hgs
parents:
diff changeset
    68
void VideoListToolbar::viewStateChanged(
hgs
parents:
diff changeset
    69
    VideoCollectionCommon::TCollectionLevels currentLevel, 
hgs
parents:
diff changeset
    70
    bool noVideos, bool modelReady)
hgs
parents:
diff changeset
    71
{
hgs
parents:
diff changeset
    72
    VideoListToolbarData::mViewStateChangedCount++;
hgs
parents:
diff changeset
    73
    VideoListToolbarData::mViewStateChangedLevel = currentLevel;
hgs
parents:
diff changeset
    74
    VideoListToolbarData::mViewStateChangedNoVideos = noVideos;
hgs
parents:
diff changeset
    75
    VideoListToolbarData::mViewStateChangedModelReady = modelReady;
hgs
parents:
diff changeset
    76
}
hgs
parents:
diff changeset
    77
hgs
parents:
diff changeset
    78
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
    79
// createToolbarActions()
hgs
parents:
diff changeset
    80
// Creates toolbar actions and toolbar icons
hgs
parents:
diff changeset
    81
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
    82
//
hgs
parents:
diff changeset
    83
void VideoListToolbar::createToolbarActions()
hgs
parents:
diff changeset
    84
{
hgs
parents:
diff changeset
    85
}
hgs
parents:
diff changeset
    86
hgs
parents:
diff changeset
    87
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
    88
// createOperatorServicesToolbar()
hgs
parents:
diff changeset
    89
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
    90
//
hgs
parents:
diff changeset
    91
void VideoListToolbar::createOperatorServicesToolbarActions()
hgs
parents:
diff changeset
    92
{
hgs
parents:
diff changeset
    93
}
hgs
parents:
diff changeset
    94
hgs
parents:
diff changeset
    95
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
    96
// loadOperatorService()
hgs
parents:
diff changeset
    97
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
    98
//
hgs
parents:
diff changeset
    99
void VideoListToolbar::loadOperatorService(int titleKey, int iconKey, int uriKey, int uidKey)
hgs
parents:
diff changeset
   100
{
hgs
parents:
diff changeset
   101
    Q_UNUSED(titleKey);
hgs
parents:
diff changeset
   102
    Q_UNUSED(iconKey);
hgs
parents:
diff changeset
   103
    Q_UNUSED(uriKey);
hgs
parents:
diff changeset
   104
    Q_UNUSED(uidKey);
hgs
parents:
diff changeset
   105
}
hgs
parents:
diff changeset
   106
hgs
parents:
diff changeset
   107
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   108
// addVideosToCollectionSlot()
hgs
parents:
diff changeset
   109
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   110
//
hgs
parents:
diff changeset
   111
void VideoListToolbar::addVideosToCollectionSlot()
hgs
parents:
diff changeset
   112
{
hgs
parents:
diff changeset
   113
}
hgs
parents:
diff changeset
   114
hgs
parents:
diff changeset
   115
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   116
// removeVideosFromCollectionSlot()
hgs
parents:
diff changeset
   117
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   118
//
hgs
parents:
diff changeset
   119
void VideoListToolbar::removeVideosFromCollectionSlot()
hgs
parents:
diff changeset
   120
{
hgs
parents:
diff changeset
   121
}
hgs
parents:
diff changeset
   122
hgs
parents:
diff changeset
   123
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
   124
// createAction()
hgs
parents:
diff changeset
   125
// ---------------------------------------------------------------------------
hgs
parents:
diff changeset
   126
//
hgs
parents:
diff changeset
   127
HbAction* VideoListToolbar::createAction(QString icon,
hgs
parents:
diff changeset
   128
        QActionGroup* actionGroup, const char *slot)
hgs
parents:
diff changeset
   129
{
hgs
parents:
diff changeset
   130
    Q_UNUSED(icon);
hgs
parents:
diff changeset
   131
    Q_UNUSED(actionGroup);
hgs
parents:
diff changeset
   132
    Q_UNUSED(slot);
hgs
parents:
diff changeset
   133
    
hgs
parents:
diff changeset
   134
    return 0;
hgs
parents:
diff changeset
   135
}
hgs
parents:
diff changeset
   136
hgs
parents:
diff changeset
   137
// End of file