telutils/dialpad/inc/dialpadvoicemailboxeventfilter.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef DIALPADVOICEMAILBOXEVENTFILTER_H
       
    19 #define DIALPADVOICEMAILBOXEVENTFILTER_H
       
    20 
       
    21 #include "dialpadmailboxeventfilterbase.h"
       
    22 
       
    23 class QTimer;
       
    24 class Dialpad;
       
    25 class DialpadSymbianWrapper;
       
    26 
       
    27 /*!
       
    28     DialpadVoiceMailboxEventFilter
       
    29     Class provides voice mailbox key handling.
       
    30 */
       
    31 class DialpadVoiceMailboxEventFilter : public DialpadMailboxEventFilterBase
       
    32 {
       
    33     Q_OBJECT
       
    34 
       
    35 public:
       
    36     explicit DialpadVoiceMailboxEventFilter(Dialpad* dialpad, QObject* parent = 0);
       
    37     virtual ~DialpadVoiceMailboxEventFilter();
       
    38 
       
    39 protected:
       
    40     bool eventFilter(QObject *watched, QEvent *event);
       
    41 
       
    42     /*!
       
    43        \fn bool handleCallButtonPress()
       
    44 
       
    45        Check if editor has number string and if it does then createCall
       
    46        is called and funtion returns true, if there is no number then
       
    47        funtion return false.
       
    48    */
       
    49     bool handleCallButtonPress();
       
    50 
       
    51     /*!
       
    52        \fn handleMailboxOperation
       
    53 
       
    54        Start vmbx call or number definition procedures.
       
    55     */
       
    56     void handleMailboxOperation();
       
    57     
       
    58 protected slots:
       
    59 
       
    60     /*!
       
    61        \fn void handleLongKeyPress()
       
    62     
       
    63        Handles long key presses.
       
    64     */
       
    65     void handleLongKeyPress();
       
    66 };
       
    67 
       
    68 #endif // DIALPADVOICEMAILBOXEVENTFILTER_H