gstreamer_test_apps/gstplayer/src/GSTPlayerdocument.cpp
branchRCL_3
changeset 30 7e817e7e631c
parent 29 567bb019e3e3
equal deleted inserted replaced
29:567bb019e3e3 30:7e817e7e631c
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
       
     3 *
       
     4 * This library is free software; you can redistribute it and/or
       
     5 * modify it under the terms of the GNU Lesser General Public
       
     6 * License as published by the Free Software Foundation; either
       
     7 * version 2 of the License, or (at your option) any later version.
       
     8 *
       
     9 * This library is distributed in the hope that it will be useful,
       
    10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    12 * Lesser General Public License for more details.
       
    13 *
       
    14 * You should have received a copy of the GNU Lesser General Public
       
    15 * License along with this library; if not, write to the
       
    16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       
    17 * Boston, MA 02111-1307, USA.
       
    18 *
       
    19 * Description:
       
    20 *
       
    21 */
       
    22 /*
       
    23 * ==============================================================================
       
    24 *  Name        : gstplayerdocument.cpp
       
    25 *  Part of     : gstplayer
       
    26 *  Interface   : 
       
    27 *  Description : 
       
    28 *  Version     : 
       
    29 *
       
    30 
       
    31 * ==============================================================================
       
    32 */
       
    33 
       
    34 // INCLUDE FILES
       
    35 #include "gstplayerappui.h"
       
    36 #include "gstplayerdocument.h"
       
    37 
       
    38 // ============================ MEMBER FUNCTIONS ===============================
       
    39 
       
    40 // -----------------------------------------------------------------------------
       
    41 // CGSTPlayerDocument::NewL()
       
    42 // Two-phased constructor.
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45 CGSTPlayerDocument* CGSTPlayerDocument::NewL( CEikApplication&
       
    46                                                           aApp )
       
    47     {
       
    48     CGSTPlayerDocument* self = NewLC( aApp );
       
    49     CleanupStack::Pop( self );
       
    50     return self;
       
    51     }
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // CGSTPlayerDocument::NewLC()
       
    55 // Two-phased constructor.
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 CGSTPlayerDocument* CGSTPlayerDocument::NewLC( CEikApplication&
       
    59                                                            aApp )
       
    60     {
       
    61     CGSTPlayerDocument* self =
       
    62         new ( ELeave ) CGSTPlayerDocument( aApp );
       
    63 
       
    64     CleanupStack::PushL( self );
       
    65     self->ConstructL();
       
    66     return self;
       
    67     }
       
    68 
       
    69 // -----------------------------------------------------------------------------
       
    70 // CGSTPlayerDocument::ConstructL()
       
    71 // Symbian 2nd phase constructor can leave.
       
    72 // -----------------------------------------------------------------------------
       
    73 //
       
    74 void CGSTPlayerDocument::ConstructL()
       
    75     {
       
    76     // No implementation required
       
    77     }
       
    78 
       
    79 // -----------------------------------------------------------------------------
       
    80 // CGSTPlayerDocument::CGSTPlayerDocument()
       
    81 // C++ default constructor can NOT contain any code, that might leave.
       
    82 // -----------------------------------------------------------------------------
       
    83 //
       
    84 CGSTPlayerDocument::CGSTPlayerDocument( CEikApplication& aApp )
       
    85     : CAknDocument( aApp )
       
    86     {
       
    87     // No implementation required
       
    88     }
       
    89 
       
    90 // ---------------------------------------------------------------------------
       
    91 // CGSTPlayerDocument::~CGSTPlayerDocument()
       
    92 // Destructor.
       
    93 // ---------------------------------------------------------------------------
       
    94 //
       
    95 CGSTPlayerDocument::~CGSTPlayerDocument()
       
    96     {
       
    97     // No implementation required
       
    98     }
       
    99 
       
   100 // ---------------------------------------------------------------------------
       
   101 // CGSTPlayerDocument::CreateAppUiL()
       
   102 // Constructs CreateAppUi.
       
   103 // ---------------------------------------------------------------------------
       
   104 //
       
   105 CEikAppUi* CGSTPlayerDocument::CreateAppUiL()
       
   106     {
       
   107     // Create the application user interface, and return a pointer to it;
       
   108     // the framework takes ownership of this object
       
   109     return ( static_cast <CEikAppUi*> ( new ( ELeave )
       
   110                                         CGSTPlayerAppUi ) );
       
   111     }
       
   112 
       
   113 // End of File
       
   114