- /************************************************************************
- * chxavplayerdoc.cpp
- * ------------------
- *
- * Synopsis:
- * One doc object is created for each app instance. The doc is used
- * to create a UI instance.
- *
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- #include "hxsym_debug.h"
- #include "chxavplayerdoc.h"
- #include "chxavplayerui.h"
- /*
- * CHXAvPlayerDoc
- * --------------
- *
- */
- CHXAvPlayerDoc::CHXAvPlayerDoc(CEikApplication& aApp)
- : CAknDocument(aApp)
- {
- }
- /*
- * ~CHAvPlayerDoc
- * --------------
- *
- */
- CHXAvPlayerDoc::~CHXAvPlayerDoc()
- {
- }
- /*
- * CreateAppUiL
- * ------------
- *
- */
- CEikAppUi *
- CHXAvPlayerDoc::CreateAppUiL()
- {
- // create the ui class that manages all the player views
- CHXAvPlayerUI* pUi = new (ELeave) CHXAvPlayerUI();
- return pUi;
- }
- void CHXAvPlayerDoc::SetEngineManager(const CHXClientEngineManagerPtr& spEngineMgr)
- {
- //
- // we keep a reference to the client engine manager
- // in the doc class in order to ensure that the client
- // core dll remains loaded for the full lifetime of the
- // ui class and all its views
- //
- m_spEngineMgr = spEngineMgr;
- }
- /*
- * OpenFileL
- * ---------
- * Open the given filename.
- *
- */
- CFileStore*
- CHXAvPlayerDoc::OpenFileL(TBool /*aDoOpen*/, const TDesC& aFilename, RFs& /*aFs*/)
- {
- CHXAvPlayerUI *pUI = static_cast<CHXAvPlayerUI *>(iAppUi);
- pUI->OpenFileL(aFilename);
- return 0;
- }
- /*
- * ConstructL
- * ----------
- *
- */
- void
- CHXAvPlayerDoc::ConstructL()
- {
- }
- /*
- * NewL
- * ----
- *
- */
- CHXAvPlayerDoc *
- CHXAvPlayerDoc::NewL(CEikApplication& aApp)
- {
- CHXAvPlayerDoc* self = new (ELeave) CHXAvPlayerDoc(aApp);
- CleanupStack::PushL(self);
- self->ConstructL();
- CleanupStack::Pop();
- return self;
- }