Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
touchfeedbackspec.h
Go to the documentation of this file.
1/*
2* Copyright (c) 2008 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: Container for composit feedback types.
15* Part of: Tactile Feedback.
16*
17*/
18
19#ifndef C_FEEDBACKSPEC_H
20#define C_FEEDBACKSPEC_H
21
22#include <e32base.h>
24
25
26// Container for one event/feedback type pair
33
43class CFeedbackSpec: public CBase
44 {
45public:
52 IMPORT_C static CFeedbackSpec* New();
53
59 virtual ~CFeedbackSpec();
60
69 IMPORT_C TInt AddFeedback( TTouchEventType aEventType,
70 TTouchLogicalFeedback aFeedback );
71
78 IMPORT_C void GetFeedbackSpec( RArray<TTactileFbItem>& aArray );
79
91 IMPORT_C TInt AddFeedback( TTouchEventType aEventType,
92 TTouchLogicalFeedback aFeedback,
93 TTouchFeedbackType aFeedbackType );
94
95
96private:
101
102private: // data
103
108 RArray<TTactileFbItem> iFbArray;
109 };
110
111#endif // C_FEEDBACKSPEC_H
Contains feedback types used for setting feedback area.
Definition touchfeedbackspec.h:44
IMPORT_C TInt AddFeedback(TTouchEventType aEventType, TTouchLogicalFeedback aFeedback)
Adds event/feedback type pair to feedback spec.
static IMPORT_C CFeedbackSpec * New()
Instantiation method.
IMPORT_C TInt AddFeedback(TTouchEventType aEventType, TTouchLogicalFeedback aFeedback, TTouchFeedbackType aFeedbackType)
Adds event/feedback type pair to feedback spec.
virtual ~CFeedbackSpec()
Destructor.
IMPORT_C void GetFeedbackSpec(RArray< TTactileFbItem > &aArray)
Gets defined event/feedback type pairs.
Definition touchfeedbackspec.h:28
TTouchLogicalFeedback iFeedback
Definition touchfeedbackspec.h:30
TTouchFeedbackType iFeedbackType
Definition touchfeedbackspec.h:31
TTouchEventType iEventType
Definition touchfeedbackspec.h:29
TTouchEventType
Pointer event types, that can be used when registering areas to registry.
Definition touchlogicalfeedback.h:30
TTouchLogicalFeedback
Logical feedback types, that can be used when producing direct feedback, or when registering areas to...
Definition touchlogicalfeedback.h:67
TTouchFeedbackType
Physical feedback types as bitmask.
Definition touchlogicalfeedback.h:122