DemoDll.cpp
上传用户:goldcmy89
上传日期:2017-12-03
资源大小:2246k
文件大小:1k
- #include "DemoDll.h"
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(DemoDll, IDemoDll)
- DemoDll::DemoDll()
- {
- /* member initializers and constructor code */
- mRecordFileName.Assign("Demo file path.");
- }
- DemoDll::~DemoDll()
- {
- /* destructor code */
- }
- /* void init (in string aLangFile, in string aParamFile); */
- NS_IMETHODIMP DemoDll::Init(const char *aLangFile, const char *aParamFile)
- {
- return NS_OK;
- }
- /* void record (in long aTop, in long aLeft, in long aWidth, in long aHight); */
- NS_IMETHODIMP DemoDll::Record(PRInt32 aTop, PRInt32 aLeft, PRInt32 aWidth, PRInt32 aHight)
- {
- return NS_OK;
- }
- /* void pause (); */
- NS_IMETHODIMP DemoDll::Pause()
- {
- return NS_OK;
- }
- /* void stop (); */
- NS_IMETHODIMP DemoDll::Stop()
- {
- return NS_OK;
- }
- /* void destroy (); */
- NS_IMETHODIMP DemoDll::Destroy()
- {
- return NS_OK;
- }
- /* attribute ACString recordFileName; */
- NS_IMETHODIMP DemoDll::GetRecordFileName(nsACString & aRecordFileName)
- {
- aRecordFileName.Assign(mRecordFileName);
- return NS_OK;
- }
- NS_IMETHODIMP DemoDll::SetRecordFileName(const nsACString & aRecordFileName)
- {
- mRecordFileName.Assign(aRecordFileName);
- return NS_OK;
- }
- /* End of implementation class template. */