defaultapplicationsettings/server/inc/das_app.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:33:30 +0100
branchRCL_3
changeset 14 5f281e37a2f5
parent 0 254040eb3b7d
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201029 Kit: 201035

/*
* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0""
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  This class implements the application.
*
*/



#ifndef C_DEFAULTAPPAPPLICATION_H
#define C_DEFAULTAPPAPPLICATION_H

#include <aknapp.h>

class CDefaultAppDocument;
class CDefaultAppServer;

/** UID for the application; this should correspond to the uid defined in the mmp file */
const TUid KUidDefaultAppServer = { 0x10281B9C };

/**
 *  This class implements the application.
 *
 *  @since Series 60 v5.0
 */
class CDefaultAppApplication : public CAknApplication
    {
private: // Functions from base classes

    /**
     * From CApaApplication.
     * Returns application's UID (KUidDefaultAppServer).
     *
     * @since S60 v5.0
     * @return The value of KUidDefaultAppServer.
     */
    TUid AppDllUid() const;

    /**
     * From CApaApplication.
     * Creates CDefaultAppDocument document object.
     *
     * @since S60 v5.0
     * @return A pointer to the created document object.
     */
    CApaDocument* CreateDocumentL();
       
    /**
     * From CApaApplication.
     * Creates a new server object (CDefaultAppServer).
     *
     * @since S60 v5.0
     * @param aAppServer pointer to the newly created server object
     */
    void NewAppServerL(CApaAppServer*& aAppServer);
    
public:
    /**
     * C++ default constructor.
     */
    CDefaultAppApplication(void);
    
public: //data
    /**
     * Pointer to the documet class
     * Not owned.
     */
    CDefaultAppDocument* iDocument; //not owned
    
    /**
     * Pointer to the server class
     * Not owned.
     */
    CDefaultAppServer* iServer;     //not owned
    };

#endif      // C_DEFAULTAPPAPPLICATION_H

// End of File