locationsystemui/locationsysui/locverifier/inc/lpdnotifreqinfo.h
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2005 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:  This class stores information regarding notification 
       
    15 *                requests.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CLPDNOTIFREQINFO_H
       
    21 #define CLPDNOTIFREQINFO_H
       
    22 
       
    23 #include <lbs/epos_privacy.h>
       
    24 
       
    25 // Forward class declarations
       
    26 
       
    27 class RPosRequestorStack;
       
    28 
       
    29 /**
       
    30  *  Class to store information about Notification dialogs
       
    31  *
       
    32  *  If a notification query is already running, further requests for
       
    33  *  notification query will be ignored and the information will be lost.
       
    34  *  Instead the logic is to query these requests and show them to the
       
    35  *  user when the notification query is dismissed. This class is used to store
       
    36  *  information about each notification request.
       
    37  *
       
    38  *  @since S60 v3.0
       
    39  */
       
    40 NONSHARABLE_CLASS(CLpdNotifReqInfo) : public CBase
       
    41     {
       
    42 
       
    43 public:
       
    44 
       
    45     /**
       
    46      * Symbian 2 Phase Constructor
       
    47      * Ownership of the RequestorStack array is transferred to this class.
       
    48      *
       
    49      * @since S60 v3.0
       
    50      * @param aSource     The Source of the Notification Request.
       
    51      * @param aReason     The reason for cancellation request.
       
    52      * @param aDecision   The decision by the network.
       
    53      * @param aRequestors The array of requestors for this notification request.
       
    54      * @return new instance of class CLpdNotifReqInfo
       
    55      */
       
    56     static CLpdNotifReqInfo* NewL(
       
    57     	TPosRequestSource aSource,
       
    58     	TPosVerifyCancelReason aReason,
       
    59     	TPosRequestDecision aDecision,
       
    60     	RPosRequestorStack* aRequestors);
       
    61 
       
    62     /**
       
    63      * Symbian 2 Phase Constructor
       
    64      * Ownership of the RequestorStack array is transferred to this class.
       
    65      *
       
    66      * @since S60 v3.0
       
    67      * @param aSource     The Source of the Notification Request.
       
    68      * @param aReason     The reason for cancellation request.
       
    69      * @param aDecision   The decision by the network.
       
    70      * @param aRequestors The array of requestors for this notification request.
       
    71      * @return new instance of class CLpdNotifReqInfo
       
    72      */
       
    73     static CLpdNotifReqInfo* NewLC(
       
    74     	TPosRequestSource aSource,
       
    75     	TPosVerifyCancelReason aReason,
       
    76     	TPosRequestDecision aDecision,
       
    77     	RPosRequestorStack* aRequestors);
       
    78 
       
    79 public:
       
    80     /**
       
    81      * Symbian virtual destructor
       
    82      */
       
    83     virtual ~CLpdNotifReqInfo();
       
    84 
       
    85     /**
       
    86      * Accessor Method
       
    87      *
       
    88      * @since S60 v3.0
       
    89      * @return The Source of the Notification Request.
       
    90      */
       
    91     const TPosRequestSource& Source();
       
    92 
       
    93     /**
       
    94      * Accessor Method
       
    95      *
       
    96      * @since S60 v3.0
       
    97      * @return The reason for cancellation request.
       
    98      */
       
    99     const TPosVerifyCancelReason& Reason();
       
   100 
       
   101     /**
       
   102      * Accessor Method
       
   103      *
       
   104      * @since S60 v3.0
       
   105      * @return The decision by the network.
       
   106      */
       
   107     const TPosRequestDecision& Decision();
       
   108 
       
   109     /**
       
   110      * Accessor Method
       
   111      *
       
   112      * @since S60 v3.0
       
   113      * @return The Array of Requestors.
       
   114      */
       
   115     const RPosRequestorStack& Requestors();
       
   116 
       
   117 private:
       
   118 
       
   119     CLpdNotifReqInfo(
       
   120     	TPosRequestSource aSource,
       
   121     	TPosVerifyCancelReason aReason,
       
   122     	TPosRequestDecision aDecision,
       
   123     	RPosRequestorStack* aRequestors);
       
   124 
       
   125     void ConstructL();
       
   126 
       
   127 private: // data
       
   128 
       
   129     /**
       
   130      * The Source of the Notification Request.
       
   131      */
       
   132     TPosRequestSource iSource;
       
   133     /**
       
   134      * The reason for cancellation request.
       
   135      */
       
   136     TPosVerifyCancelReason iReason;
       
   137     /**
       
   138      * The decision by the network.
       
   139      */
       
   140     TPosRequestDecision iDecision;
       
   141     /**
       
   142      * The array of requestors for this notification request.
       
   143      * Own.
       
   144      */
       
   145 	RPosRequestorStack* iRequestors;
       
   146     };
       
   147 
       
   148 #endif // CLPDNOTIFREQINFO_H