/[tivodecode]/tivocom/trunk/CChunkCollection.h
ViewVC logotype

Diff of /tivocom/trunk/CChunkCollection.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 253 by jeremyd2019, Wed Aug 15 06:53:07 2007 UTC revision 254 by jeremyd2019, Sun Sep 9 23:26:20 2007 UTC
# Line 19  Line 19 
19  class ATL_NO_VTABLE CChunkCollection :  class ATL_NO_VTABLE CChunkCollection :
20          public CComObjectRootEx<CComSingleThreadModel>,          public CComObjectRootEx<CComSingleThreadModel>,
21  //      public CComCoClass<CChunkCollection, &CLSID_ChunkCollection>,  //      public CComCoClass<CChunkCollection, &CLSID_ChunkCollection>,
22          public IDispatchImpl<IChunkCollection, &IID_IChunkCollection, &LIBID_tivocomLib, /*wMajor =*/ 1, /*wMinor =*/ 0>          public IDispatchImpl<IChunkCollection, &IID_IChunkCollection, &LIBID_tivocomLib, /*wMajor =*/ 1, /*wMinor =*/ 1>
23  {  {
         FILE* m_fh;  
         CComPtr<ITivoFile> m_tivofile;  
         off_t m_chunkstart;  
         USHORT m_nChunks;  
24          std::vector<CComPtr<ITivoChunk> > m_chunks;          std::vector<CComPtr<ITivoChunk> > m_chunks;
25  public:  public:
26          CChunkCollection()          CChunkCollection()
# Line 50  END_COM_MAP() Line 46  END_COM_MAP()
46          void FinalRelease()          void FinalRelease()
47          {          {
48                  m_chunks.clear();                  m_chunks.clear();
                 m_tivofile.Release();  
49          }          }
50    
51          STDMETHOD(Init)(const std::string & mak, USHORT nChunks, off_t chunks_start, CTivoFile* tivoFile);          STDMETHOD(Init)(const std::string & mak, USHORT nChunks, ULARGE_INTEGER* chunk_pos, IStream* pStm);
52    
53  public:  public:
54    

Legend:
Removed from v.253  
changed lines
  Added in v.254

cvs@jdrake.com
ViewVC Help
Powered by ViewVC 1.1.13