upnpmediaserver/avobjects/inc/upnpmediaservereventlist.h
changeset 0 7f85d04be362
equal deleted inserted replaced
-1:000000000000 0:7f85d04be362
       
     1 /** @file
       
     2 * Copyright (c) 2005-2006 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:  Media Server event list
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_UPNPMEDIASERVEREVENTLIST_H
       
    20 #define C_UPNPMEDIASERVEREVENTLIST_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <s32mem.h>
       
    25 #include "upnpobject.h"
       
    26 #include "upnpobject.h"
       
    27 #include "upnpmediaserverevent.h"
       
    28 
       
    29 
       
    30 
       
    31 
       
    32 
       
    33 
       
    34 
       
    35 // DATA TYPES
       
    36 typedef RPointerArray<CUpnpMediaServerEvent> RUpnpMediaServerEventList;
       
    37 
       
    38 
       
    39 // FORWARD DECLARATIONS
       
    40 class CUpnpItem;
       
    41 class CUpnpMediaServerEvent;
       
    42 
       
    43 
       
    44 // CLASS DECLARATION
       
    45 
       
    46 /**
       
    47 *  Base class for Media Server events lists
       
    48 *
       
    49 *  @since Series 60 3.1
       
    50 */
       
    51 class CUpnpMediaServerEventList : public CBase
       
    52     {
       
    53 public:  // Constructors and destructor
       
    54 
       
    55 
       
    56 
       
    57     /**
       
    58     * Destructor.
       
    59     */
       
    60     virtual ~CUpnpMediaServerEventList();
       
    61 
       
    62 public: // New functions
       
    63 
       
    64     /**
       
    65     * Serialize the whole list to a heap based descriptor.
       
    66     * @since Series 60 3.0
       
    67     * @return pointer to the descriptor where the list is serialized.
       
    68     */
       
    69     IMPORT_C HBufC8* ToDes8L() const;
       
    70 
       
    71     /**
       
    72     * Returns RPointerArray of the itemlist
       
    73     * @since Series 60 3.0
       
    74     * @param TBool indicating whether recursive count is needed
       
    75     * @return TInt count information
       
    76     */
       
    77     IMPORT_C RUpnpMediaServerEventList& GetPointerArray( );
       
    78 
       
    79 public:
       
    80 
       
    81     /**
       
    82     * Externalizes itemlist information to stream.
       
    83     * Leaves in case of errors.
       
    84     * @since Series 60 3.0
       
    85     * @param reference to RWriteStream
       
    86     * @return none
       
    87     */
       
    88     IMPORT_C void ExternalizeL( RWriteStream& aStream ) const;
       
    89 
       
    90     /**
       
    91     * Internalizes itemlist information from stream.
       
    92     * Leaves in case of errors.
       
    93     * @since Series 60 3.0
       
    94     * @param reference to RReadStream
       
    95     * @return none
       
    96     */
       
    97     IMPORT_C void InternalizeL( RReadStream& aStream );
       
    98 
       
    99 protected:
       
   100 
       
   101     /**
       
   102     * Internalizes itemlist information from stream.
       
   103     * Leaves in case of errors.
       
   104     * @since Series 60 3.0
       
   105     * @param reference to RReadStream
       
   106     * @return none
       
   107     */
       
   108     virtual void InternalizeSubTypeL( RReadStream& aStream ) = 0;
       
   109 
       
   110     /**
       
   111     * C++ default constructor.
       
   112     */
       
   113     CUpnpMediaServerEventList();
       
   114 
       
   115     /**
       
   116     * By default Symbian 2nd phase constructor is private.
       
   117     */
       
   118     void ConstructL( );
       
   119 
       
   120 protected:
       
   121     // items
       
   122     RUpnpMediaServerEventList   iEvents;
       
   123     };
       
   124 
       
   125 #endif      // C_UPNPMEDIASERVEREVENTLIST_H
       
   126 
       
   127 // End of File