epoc32/include/mw/epos_cposlmpartialreadparameters.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) 2005-2006 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:  CPosLmPartialReadParameters class
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
#ifndef CPOSLMPARTIALREADPARAMETERS_H
williamr@2
    20
#define CPOSLMPARTIALREADPARAMETERS_H
williamr@2
    21
williamr@2
    22
#include <e32base.h>
williamr@4
    23
#include <lbsfields.h>
williamr@2
    24
#include "EPos_CPosLandmark.h"
williamr@2
    25
williamr@2
    26
/**
williamr@2
    27
*  Container class for partial landmark settings.
williamr@2
    28
*  Partial settings are used to define which landmark data should be returned
williamr@2
    29
*  when @ref CPosLandmarkDatabase::ReadPartialLandmarkLC is called.
williamr@2
    30
*
williamr@2
    31
*  @lib eposlandmarks.lib
williamr@2
    32
*  @since S60 3.0
williamr@2
    33
*/
williamr@2
    34
class CPosLmPartialReadParameters : public CBase
williamr@2
    35
    {
williamr@2
    36
    public:
williamr@2
    37
williamr@2
    38
        /**
williamr@2
    39
        * Two-phased constructor.
williamr@2
    40
        * @returns A new instance of this class.
williamr@2
    41
        */
williamr@2
    42
        IMPORT_C static CPosLmPartialReadParameters* NewLC();
williamr@2
    43
williamr@2
    44
        /**
williamr@2
    45
        * Destructor.
williamr@2
    46
        */
williamr@2
    47
        virtual ~CPosLmPartialReadParameters();
williamr@2
    48
williamr@2
    49
    public:
williamr@2
    50
williamr@2
    51
        /**
williamr@2
    52
        * Returns a bitmap of the landmark attributes which should be included
williamr@2
    53
        * in a partial landmark.
williamr@2
    54
        *
williamr@2
    55
        * The bitmap is a combination of the values in
williamr@2
    56
        * CPosLandmark::TAttribute.
williamr@2
    57
        *
williamr@2
    58
        * @return The partial landmark attributes bitmap.
williamr@2
    59
        */
williamr@2
    60
        IMPORT_C CPosLandmark::TAttributes RequestedAttributes() const;
williamr@2
    61
williamr@2
    62
        /**
williamr@2
    63
        * Sets a bitmap of the landmark attributes which should be included in
williamr@2
    64
        * a partial landmark.
williamr@2
    65
        *
williamr@2
    66
        * The bitmap is constructed from the values in
williamr@2
    67
        * CPosLandmark::TAttribute.
williamr@2
    68
        *
williamr@2
    69
        * @param[in] aAttributes A partial landmark attributes bitmap.
williamr@2
    70
        */
williamr@2
    71
        IMPORT_C void SetRequestedAttributes(
williamr@2
    72
            CPosLandmark::TAttributes aAttributes
williamr@2
    73
        );
williamr@2
    74
williamr@2
    75
        /**
williamr@2
    76
        * Returns the position fields which should be included in a partial
williamr@2
    77
        * landmark.
williamr@2
    78
        *
williamr@2
    79
        * @param[out] aRequestedFields Will contain the requested position fields,
williamr@2
    80
        *   i.e. @p TPositionFieldId.
williamr@2
    81
        * @returns @p KErrNone if successful, otherwise one of the system wide
williamr@2
    82
        *   error codes.
williamr@2
    83
        */
williamr@2
    84
        IMPORT_C TInt GetRequestedPositionFields(
williamr@2
    85
            RArray<TUint>& aRequestedFields
williamr@2
    86
        ) const;
williamr@2
    87
williamr@2
    88
        /**
williamr@2
    89
        * Sets the position fields which should be included in a partial
williamr@2
    90
        * landmark.
williamr@2
    91
        *
williamr@2
    92
        * @param[in] aRequestedFields The requested position fields, i.e.
williamr@2
    93
        *   @p TPositionFieldId.
williamr@2
    94
        * @returns @p KErrNone if successful, otherwise one of the system wide
williamr@2
    95
        *   error codes.
williamr@2
    96
        */
williamr@2
    97
        IMPORT_C TInt SetRequestedPositionFields(
williamr@2
    98
            const RArray<TUint>& aRequestedFields
williamr@2
    99
        );
williamr@2
   100
williamr@2
   101
    private:
williamr@2
   102
williamr@2
   103
        // C++ constructor.
williamr@2
   104
        CPosLmPartialReadParameters();
williamr@2
   105
williamr@2
   106
        // Symbian constructor
williamr@2
   107
        void ConstructL();
williamr@2
   108
williamr@2
   109
        // Prohibit copy constructor
williamr@2
   110
        CPosLmPartialReadParameters(
williamr@2
   111
            const CPosLmPartialReadParameters& );
williamr@2
   112
        // Prohibit assigment operator
williamr@2
   113
        CPosLmPartialReadParameters& operator= (
williamr@2
   114
            const CPosLmPartialReadParameters& );
williamr@2
   115
williamr@2
   116
    private:
williamr@2
   117
williamr@2
   118
        // Requested position fields
williamr@2
   119
        RArray<TUint> iRequestedFields;
williamr@2
   120
williamr@2
   121
        // Requested attributes
williamr@2
   122
        TUint32 iAttributes;
williamr@2
   123
    };
williamr@2
   124
williamr@2
   125
#endif      // CPOSLMPARTIALREADPARAMETERS_H
williamr@2
   126
williamr@2
   127