- /************************************************************************
- * chxavfileviewpageinfo.h
- * -----------------------
- *
- * Synopsis:
- * Class used to maintain info on the page for the file view. There are
- * two pages, the regular disk and MMc page.
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- #ifndef _chxavfileviewpageinfo_h_
- #define _chxavfileviewpageinfo_h_
- // Helix includes...
- #include "unkimp.h"
- #include "ihxpckts.h"
- #include "hxstring.h"
- #include "hxurl.h"
- #include "hxwintyp.h"
- #include "hxcom.h"
- #include "hxcomm.h"
- #include "hxmon.h"
- #include "hxfiles.h"
- #include "hxengin.h"
- #include "hxstack.h"
- #include "hxcore.h"
- #include "hxclsnk.h"
- #include "hxerror.h"
- #include "hxauth.h"
- #include "hxwin.h"
- #include "hxprefs.h"
- #include "hxtbuf.h"
- #include "dllacces.h"
- #include "dllpath.h"
- #include "hxlist.h"
- #include "hxstrutl.h"
- // Includes from this project...
- #include "chxavmisc.h"
- #include "chxavutil.h"
- #include "chxavmediafolderinfo.h"
- #include "chxavrefptr.h"
- #include "chxbody.h"
- #include "chxsmartptr.h"
- #include "chxavvector.h"
- // class CHXAvFileViewPageInfo
- class CHXAvFileViewPageInfo : public CHXBody
- {
- public:
- // ctor and dtor
- CHXAvFileViewPageInfo();
- virtual ~CHXAvFileViewPageInfo();
- void ConstructL(const TDesC& rootPath, bool bIsAutoCreateRoot, TInt idxTabImage, TInt idxTabMask);
- private:
- // disallow assignment and copy
- CHXAvFileViewPageInfo(const CHXAvFileViewPageInfo& rhs);
- CHXAvFileViewPageInfo& operator=(const CHXAvFileViewPageInfo& rhs);
- public:
- // methods
- void SetCurrentIndex(TInt idx);
- TInt GetSelectedItemIndex() const;
- CHXAvMisc::ImageInfo GetTabInfo() const;
- const TDesC& GetTabImageFilePath() const;
- bool IsAutoCreateRoot() const;
- CHXStack& Indexes();
- CHXAvMediaFolderInfo* FolderInfo();
- private:
- // implementation
- private:
- // data
- TInt m_idxSelectedItem;
- refptr<HBufC> m_spTabImageFilePath;
- CHXAvMisc::ImageInfo m_tabImageInfo;
- CHXStack m_indexes;
- bool m_bIsAutoCreateRoot;
- refptr<CHXAvMediaFolderInfo> m_spFolderInfo;
- };
- typedef CHXSmartPtr<CHXAvFileViewPageInfo> CHXAvFileViewPageInfoPtr;
- typedef CHXAvVector<CHXAvFileViewPageInfoPtr> CHXAvFileViewPageInfoVector;
- ///////////////////////////////////
- //
- inline CHXStack&
- CHXAvFileViewPageInfo::Indexes()
- {
- return m_indexes;
- }
- ///////////////////////////////////
- //
- inline
- CHXAvMediaFolderInfo* CHXAvFileViewPageInfo::FolderInfo()
- {
- return m_spFolderInfo.Ptr();
- }
- ///////////////////////////////////
- //
- inline
- void CHXAvFileViewPageInfo::SetCurrentIndex(TInt idx)
- {
- m_idxSelectedItem = idx;
- }
- inline
- TInt CHXAvFileViewPageInfo::GetSelectedItemIndex() const
- {
- return m_idxSelectedItem;
- }
- inline
- CHXAvMisc::ImageInfo CHXAvFileViewPageInfo::GetTabInfo() const
- {
- return m_tabImageInfo;
- }
- inline
- const TDesC& CHXAvFileViewPageInfo::GetTabImageFilePath() const
- {
- return *m_spTabImageFilePath;
- }
- ///////////////////////////////////
- // automatically create root if doesn't exist?
- inline
- bool CHXAvFileViewPageInfo::IsAutoCreateRoot() const
- {
- return m_bIsAutoCreateRoot;
- }
- #endif // _chxavfileviewpageinfo_h_