calendarui/views/dayview/tsrc/unittests/unittest_calendayview/calendayutils.h
changeset 45 b6db4fd4947b
child 63 a3cb48f6c889
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
       
     1 /*
       
     2  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  CalenDayUtils utility class header.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CALENDAYUTILS_H_
       
    19 #define CALENDAYUTILS_H_
       
    20 
       
    21 class CalenDayUtils
       
    22 	{
       
    23 public:
       
    24 	static CalenDayUtils *instance()
       
    25 		{
       
    26 		}
       
    27 	~CalenDayUtils()
       
    28 		{
       
    29 		}
       
    30 
       
    31 	qreal screenWidth()
       
    32 		{
       
    33 		return 0;
       
    34 		}
       
    35 	qreal hourElementWidth()
       
    36 		{
       
    37 		return 0;
       
    38 		}
       
    39 	qreal hourElementHeight()
       
    40 		{
       
    41 		return 0;
       
    42 		}
       
    43 	qreal contentWidth()
       
    44 		{
       
    45 		return 0;
       
    46 		}
       
    47 
       
    48 	Qt::Orientation orientation()
       
    49 		{
       
    50 		return 1;
       
    51 		}
       
    52 
       
    53 	HbMainWindow* mainWindow()
       
    54 		{
       
    55 		return 0;
       
    56 		}
       
    57 
       
    58 	bool isHorizontalSwipe(qreal angle)
       
    59 		{
       
    60 		Q_UNUSED(angle);
       
    61 		return false;
       
    62 		}
       
    63 
       
    64 protected:
       
    65 	CalenDayUtils()
       
    66 		{
       
    67 		}
       
    68 	};
       
    69 
       
    70 #endif /* CALENDAYUTILS_H_ */