bluetoothengine/bthid/mouse/Sesame_client/inc/pointmsgqueue.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 27 Apr 2010 16:49:44 +0300
branchRCL_3
changeset 16 b23265fb36da
parent 13 b6f55cd40afd
permissions -rw-r--r--
Revision: 201015 Kit: 201017

/*
* Copyright (c) 2006-2006 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:  Peninput message queue header
 *
*/

#ifndef __POINT_MSGQUE__
#define __POINT_MSGQUE__
#include <e32msgqueue.h>
#define KPointQueueLen (1000)
#define KPMaxEvent (5)
_LIT(KMsgBTMouseBufferQueue,"BTMouseanimqueue");

const TInt KResetBuffer = -1;

enum
    {
    KBufferPlainPointer = 0, KBufferPenDown, KBufferPenUp
    };

/**
 * KAnimationCommands.
 * Constant used to request a reset of the bouncing square,
 * enumeration can be expanded
 */
enum KAnimationCommands
    {
    KStartBTCursorAnim = 1,
    KStopBTCursorAnim = 2,
    KChangeCursor = 3,
    KSendRawEvent = 4,
    KRedrawBTCursorAnim = 5,
    KResetBTCursorAnim = 6
    };

class TPointBuffer
    {
public:
    TInt iNum;
    TInt iType[2 * KPMaxEvent];
    TPoint iPoint[2 * KPMaxEvent];
    };
#endif