mpviewplugins/mpmediawallviewplugin/tsrc/unittest_mpmediawallview/stub/src/hgmediawall.cpp
author hgs
Fri, 06 Aug 2010 16:51:36 -0500
changeset 47 4cc1412daed0
permissions -rw-r--r--
201031
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
47
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: HgMediawall stub for testing mpcollectioncontainers
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#include "hgmediawall.h"
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
/*!
hgs
parents:
diff changeset
    22
 Constructs the mediawall widget stub.
hgs
parents:
diff changeset
    23
 */
hgs
parents:
diff changeset
    24
HgWidget::HgWidget( QGraphicsItem *parent )
hgs
parents:
diff changeset
    25
{
hgs
parents:
diff changeset
    26
    Q_UNUSED(parent);
hgs
parents:
diff changeset
    27
}
hgs
parents:
diff changeset
    28
hgs
parents:
diff changeset
    29
/*!
hgs
parents:
diff changeset
    30
 Destructs the mediawall widget stub.
hgs
parents:
diff changeset
    31
 */
hgs
parents:
diff changeset
    32
HgWidget::~HgWidget()
hgs
parents:
diff changeset
    33
{
hgs
parents:
diff changeset
    34
}
hgs
parents:
diff changeset
    35
hgs
parents:
diff changeset
    36
/*!
hgs
parents:
diff changeset
    37
 Stub function
hgs
parents:
diff changeset
    38
 */
hgs
parents:
diff changeset
    39
void HgWidget::setScrollBarPolicy( ScrollBarPolicy policy )
hgs
parents:
diff changeset
    40
{
hgs
parents:
diff changeset
    41
    Q_UNUSED(policy);
hgs
parents:
diff changeset
    42
}
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
/*!
hgs
parents:
diff changeset
    45
 Stub function
hgs
parents:
diff changeset
    46
 */
hgs
parents:
diff changeset
    47
void HgWidget::setModel( QAbstractItemModel *model )
hgs
parents:
diff changeset
    48
{
hgs
parents:
diff changeset
    49
    Q_UNUSED(model);
hgs
parents:
diff changeset
    50
}
hgs
parents:
diff changeset
    51
hgs
parents:
diff changeset
    52
/*!
hgs
parents:
diff changeset
    53
 Stub function
hgs
parents:
diff changeset
    54
 */
hgs
parents:
diff changeset
    55
void HgWidget::scrollTo( const QModelIndex &index )
hgs
parents:
diff changeset
    56
{
hgs
parents:
diff changeset
    57
    Q_UNUSED(index);
hgs
parents:
diff changeset
    58
}
hgs
parents:
diff changeset
    59
hgs
parents:
diff changeset
    60
/*!
hgs
parents:
diff changeset
    61
 Stub function
hgs
parents:
diff changeset
    62
 */
hgs
parents:
diff changeset
    63
QModelIndex HgWidget::currentIndex() const
hgs
parents:
diff changeset
    64
{
hgs
parents:
diff changeset
    65
    return QModelIndex();
hgs
parents:
diff changeset
    66
}
hgs
parents:
diff changeset
    67
hgs
parents:
diff changeset
    68
void HgWidget::setItemSize(const QSizeF& size)
hgs
parents:
diff changeset
    69
{
hgs
parents:
diff changeset
    70
    Q_UNUSED(size);
hgs
parents:
diff changeset
    71
}
hgs
parents:
diff changeset
    72
hgs
parents:
diff changeset
    73
QSizeF HgWidget::itemSize() const
hgs
parents:
diff changeset
    74
{
hgs
parents:
diff changeset
    75
    return QSizeF();
hgs
parents:
diff changeset
    76
}
hgs
parents:
diff changeset
    77
hgs
parents:
diff changeset
    78
void HgWidget::setDefaultImage(QImage defaultImage)
hgs
parents:
diff changeset
    79
{
hgs
parents:
diff changeset
    80
    Q_UNUSED(defaultImage);
hgs
parents:
diff changeset
    81
}
hgs
parents:
diff changeset
    82
hgs
parents:
diff changeset
    83
void HgWidget::setIndexFeedbackPolicy( IndexFeedbackPolicy policy)
hgs
parents:
diff changeset
    84
{
hgs
parents:
diff changeset
    85
    Q_UNUSED(policy);
hgs
parents:
diff changeset
    86
}
hgs
parents:
diff changeset
    87
HbScrollBar *HgWidget::scrollBar() const
hgs
parents:
diff changeset
    88
{
hgs
parents:
diff changeset
    89
    return new HbScrollBar();
hgs
parents:
diff changeset
    90
}
hgs
parents:
diff changeset
    91
bool HgWidget::getItemOutline(const QModelIndex& index, QPolygonF& points)
hgs
parents:
diff changeset
    92
{
hgs
parents:
diff changeset
    93
    Q_UNUSED(index);
hgs
parents:
diff changeset
    94
    Q_UNUSED(points);
hgs
parents:
diff changeset
    95
    return false;
hgs
parents:
diff changeset
    96
}
hgs
parents:
diff changeset
    97
hgs
parents:
diff changeset
    98
//===========================================================================
hgs
parents:
diff changeset
    99
//===========================================================================
hgs
parents:
diff changeset
   100
hgs
parents:
diff changeset
   101
/*!
hgs
parents:
diff changeset
   102
 Constructs the mediawall widget stub.
hgs
parents:
diff changeset
   103
 */
hgs
parents:
diff changeset
   104
HgMediawall::HgMediawall( QGraphicsItem *parent )
hgs
parents:
diff changeset
   105
{
hgs
parents:
diff changeset
   106
    Q_UNUSED(parent);
hgs
parents:
diff changeset
   107
    mReflectionEnabled = true;
hgs
parents:
diff changeset
   108
}
hgs
parents:
diff changeset
   109
hgs
parents:
diff changeset
   110
/*!
hgs
parents:
diff changeset
   111
 Destructs the mediawall widget stub.
hgs
parents:
diff changeset
   112
 */
hgs
parents:
diff changeset
   113
HgMediawall::~HgMediawall()
hgs
parents:
diff changeset
   114
{
hgs
parents:
diff changeset
   115
}
hgs
parents:
diff changeset
   116
hgs
parents:
diff changeset
   117
/*!
hgs
parents:
diff changeset
   118
 Stub function
hgs
parents:
diff changeset
   119
 */
hgs
parents:
diff changeset
   120
void HgMediawall::setTitlePosition( LabelPosition position )
hgs
parents:
diff changeset
   121
{
hgs
parents:
diff changeset
   122
    Q_UNUSED(position);
hgs
parents:
diff changeset
   123
}
hgs
parents:
diff changeset
   124
hgs
parents:
diff changeset
   125
/*!
hgs
parents:
diff changeset
   126
 Stub function
hgs
parents:
diff changeset
   127
 */
hgs
parents:
diff changeset
   128
void HgMediawall::setDescriptionPosition( LabelPosition position )
hgs
parents:
diff changeset
   129
{
hgs
parents:
diff changeset
   130
    Q_UNUSED(position);
hgs
parents:
diff changeset
   131
}
hgs
parents:
diff changeset
   132
hgs
parents:
diff changeset
   133
/*!
hgs
parents:
diff changeset
   134
 Stub function
hgs
parents:
diff changeset
   135
 */
hgs
parents:
diff changeset
   136
void HgMediawall::setTitleFontSpec( const HbFontSpec &fontSpec )
hgs
parents:
diff changeset
   137
{
hgs
parents:
diff changeset
   138
    Q_UNUSED(fontSpec);
hgs
parents:
diff changeset
   139
}
hgs
parents:
diff changeset
   140
hgs
parents:
diff changeset
   141
/*!
hgs
parents:
diff changeset
   142
 Stub function
hgs
parents:
diff changeset
   143
 */
hgs
parents:
diff changeset
   144
void HgMediawall::setDescriptionFontSpec( const HbFontSpec &fontSpec )
hgs
parents:
diff changeset
   145
{
hgs
parents:
diff changeset
   146
    Q_UNUSED(fontSpec);
hgs
parents:
diff changeset
   147
}
hgs
parents:
diff changeset
   148
hgs
parents:
diff changeset
   149
/*!
hgs
parents:
diff changeset
   150
 Stub function
hgs
parents:
diff changeset
   151
 */
hgs
parents:
diff changeset
   152
void HgMediawall::enableReflections( bool enabled )
hgs
parents:
diff changeset
   153
{
hgs
parents:
diff changeset
   154
    mReflectionEnabled = enabled;
hgs
parents:
diff changeset
   155
}
hgs
parents:
diff changeset
   156
hgs
parents:
diff changeset
   157
/*!
hgs
parents:
diff changeset
   158
 Stub function
hgs
parents:
diff changeset
   159
 */
hgs
parents:
diff changeset
   160
bool HgMediawall::reflectionsEnabled() const
hgs
parents:
diff changeset
   161
{
hgs
parents:
diff changeset
   162
    return mReflectionEnabled;
hgs
parents:
diff changeset
   163
}
hgs
parents:
diff changeset
   164