menucontentsrv/srvinc/menusrvbuf.h
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2009 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 __MENUSRVBUF_H__
       
    19 #define __MENUSRVBUF_H__
       
    20 
       
    21 //  INCLUDES
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <s32mem.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 * Server side dynamic stream buffer. Hosts streamed data on the server side.
       
    30 */
       
    31 NONSHARABLE_CLASS( HMenuSrvBuf ): public TBufBuf
       
    32     {
       
    33 
       
    34 public:     // Constructors and destructor
       
    35 
       
    36     /**
       
    37     * Two phased constructor. Leaves on failure.
       
    38     * @return The constructed buffer.
       
    39     */
       
    40     static HMenuSrvBuf* NewL();
       
    41 
       
    42     /**
       
    43     * Two phased constructor. Leaves on failure.
       
    44     * @return The constructed buffer.
       
    45     */
       
    46     static HMenuSrvBuf* NewLC();
       
    47 
       
    48 private:    // Constructors and destructor
       
    49 
       
    50     /**
       
    51     * Constructor.
       
    52     */
       
    53     inline HMenuSrvBuf();
       
    54 
       
    55     /**
       
    56     * Second phase constructor. Leaves on failure.
       
    57     */
       
    58     void ConstructL();
       
    59 
       
    60     /**
       
    61     * Destructor.
       
    62     */
       
    63     virtual inline ~HMenuSrvBuf();
       
    64 
       
    65 private:    // From TBufBuf
       
    66 
       
    67     /**
       
    68     * Release this buffer. Deletes this.
       
    69     */
       
    70     void DoRelease();
       
    71 
       
    72 private:    // Data
       
    73 
       
    74     CBufBase* iBuf; ///< The buffer. Owned.
       
    75 
       
    76     };
       
    77 
       
    78 #include "menusrvbuf.inl"
       
    79 
       
    80 #endif // __MENUSRVBUF_H__
       
    81             
       
    82 // End of File