epoc32/include/app/msgbiocontrolobserver.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@2
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:  
williamr@2
    15
*     Bio control observer.
williamr@2
    16
*
williamr@2
    17
*/
williamr@2
    18
williamr@2
    19
williamr@2
    20
williamr@2
    21
#ifndef __MSGBIOCONTROLOBSERVER_H_
williamr@2
    22
#define __MSGBIOCONTROLOBSERVER_H_
williamr@2
    23
williamr@2
    24
// INCLUDES 
williamr@2
    25
// CONSTANTS
williamr@2
    26
// MACROS
williamr@2
    27
// DATA TYPES
williamr@2
    28
// FUNCTION PROTOTYPES
williamr@2
    29
// FORWARD DECLARATIONS
williamr@2
    30
// FORWARD DECLARATIONS
williamr@2
    31
williamr@2
    32
// CLASS DECLARATION
williamr@2
    33
williamr@2
    34
/**
williamr@2
    35
 * Interface for Bio Control Observer. The MMsgBioControlObserver is used
williamr@2
    36
 * for observing the Bio Control from the editor application.
williamr@2
    37
 */
williamr@2
    38
class MMsgBioControlObserver
williamr@2
    39
    {
williamr@2
    40
    public:
williamr@2
    41
williamr@2
    42
        /**
williamr@2
    43
         * The command types. For use in conjunction with the
williamr@2
    44
         * functions of this class.
williamr@2
    45
         */
williamr@2
    46
        enum TMsgCommands
williamr@2
    47
            {
williamr@2
    48
            EMsgNone = 0,
williamr@2
    49
            EMsgSave,
williamr@2
    50
            EMsgReply,
williamr@2
    51
            EMsgForwad,
williamr@2
    52
            EMsgSend,
williamr@2
    53
            EMsgAddressBook,          
williamr@2
    54
            EMsgClose
williamr@2
    55
            };
williamr@2
    56
	
williamr@2
    57
    public:
williamr@2
    58
williamr@2
    59
        /**
williamr@2
    60
         * Returns the first free command id that a BIO control can use for
williamr@2
    61
         * its own purposes. All the commands having ids of more or equal to
williamr@2
    62
         * an id returned by this function are passed to the BIO control.
williamr@2
    63
         * @return First free command.
williamr@2
    64
         */
williamr@2
    65
        virtual TInt FirstFreeCommand() const = 0;
williamr@2
    66
williamr@2
    67
        /**
williamr@2
    68
         * Requests the BIO message editor/viewer to handle a command.
williamr@2
    69
         * Typically the BIO message editor/viewer does not handle a requested
williamr@2
    70
         * command immediately but after the BIO control has returned from the
williamr@2
    71
         * HandleCommandL function.
williamr@2
    72
         * @param aCommand The command that can be handled.
williamr@2
    73
         * @return KerrNone or KerrNotSupported
williamr@2
    74
         */
williamr@2
    75
        virtual TInt RequestHandleCommandL(TMsgCommands aCommand) = 0;
williamr@2
    76
williamr@2
    77
        /**
williamr@2
    78
         * Returns ETrue or EFalse whether a requested aCommand is supported
williamr@2
    79
         * by the BIO message editor or not. This command should be used
williamr@2
    80
         * before requesting command handling by RequestHandleCommand().
williamr@2
    81
         * @param aCommand The command
williamr@2
    82
         * @return ETrue if command is support and EFalse if not.
williamr@2
    83
         */
williamr@2
    84
        virtual TBool IsCommandSupported(TMsgCommands aCommand) const = 0;
williamr@2
    85
    };
williamr@2
    86
williamr@2
    87
williamr@2
    88
#endif // __MSGBIOCONTROLOBSERVER_H_
williamr@2
    89
williamr@2
    90
//end of file