epoc32/include/app/TVPbkWordParserCallbackParam.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
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@4
     1
/*
williamr@4
     2
* Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies).
williamr@4
     3
* All rights reserved.
williamr@4
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@4
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@4
     8
*
williamr@4
     9
* Initial Contributors:
williamr@4
    10
* Nokia Corporation - initial contribution.
williamr@4
    11
*
williamr@4
    12
* Contributors:
williamr@4
    13
*
williamr@4
    14
* Description:  A parameter class for a find operation.
williamr@4
    15
*
williamr@4
    16
*/
williamr@4
    17
williamr@4
    18
williamr@4
    19
#ifndef T_TVPBKWORDPARSERCALLBACKPARAM_H
williamr@4
    20
#define T_TVPBKWORDPARSERCALLBACKPARAM_H
williamr@4
    21
williamr@4
    22
#include <e32def.h>
williamr@4
    23
williamr@4
    24
/**
williamr@4
    25
 * A parameter class for a find operation.
williamr@4
    26
 *
williamr@4
    27
 * The parameter is used in TCallBack parameter to the client when it uses
williamr@4
    28
 * the find operation of the contact manager. The find operations will
williamr@4
    29
 * then leave the parsing of words to clients responsibility.
williamr@4
    30
 * The Virtual Phonebook store implementation will set the iStringToParse
williamr@4
    31
 * and client then fills the iWordArray.
williamr@4
    32
 *
williamr@4
    33
 * @see CVPbkContactManager::FindL
williamr@4
    34
 */
williamr@4
    35
struct TVPbkWordParserCallbackParam
williamr@4
    36
    {
williamr@4
    37
    /**
williamr@4
    38
     * Constructor.
williamr@4
    39
     *
williamr@4
    40
     * @param aStringToParse a string that must be parsed to iWordArray
williamr@4
    41
     * @param aWordArray an array for parsed words
williamr@4
    42
     */
williamr@4
    43
    inline TVPbkWordParserCallbackParam( const TDesC* aStringToParse, 
williamr@4
    44
        CDesCArray* aWordArray ) 
williamr@4
    45
        :   iStringToParse( aStringToParse ), 
williamr@4
    46
            iWordArray( aWordArray ) {}
williamr@4
    47
williamr@4
    48
    /**
williamr@4
    49
     * Not Own: a string that client must parse.
williamr@4
    50
     */
williamr@4
    51
    const TDesC* iStringToParse;
williamr@4
    52
williamr@4
    53
    /**
williamr@4
    54
     * Not Own: an array for parsed words.
williamr@4
    55
     */
williamr@4
    56
    CDesCArray* iWordArray;
williamr@4
    57
    };
williamr@4
    58
williamr@4
    59
#endif // T_TVPBKWORDPARSERCALLBACKPARAM_H