Meta2.cpp
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:11k
源码类别:

MTK

开发平台:

C++ Builder

  1. /*****************************************************************************
  2. *  Copyright Statement:
  3. *  --------------------
  4. *  This software is protected by Copyright and the information contained
  5. *  herein is confidential. The software may not be copied and the information
  6. *  contained herein may not be used or disclosed except with the written
  7. *  permission of MediaTek Inc. (C) 2005
  8. *
  9. *  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  10. *  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  11. *  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
  12. *  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  13. *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  14. *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  15. *  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  16. *  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  17. *  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
  18. *  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
  19. *  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
  20. *  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
  21. *
  22. *  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
  23. *  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  24. *  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  25. *  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
  26. *  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
  27. *
  28. *  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
  29. *  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
  30. *  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
  31. *  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
  32. *  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
  33. *
  34. *****************************************************************************/
  35. /*****************************************************************************
  36.  *
  37.  * Filename:
  38.  * ---------
  39.  *   META2.cpp
  40.  *
  41.  * Project:
  42.  * --------
  43.  *   Maui META APP
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *  META project source
  48.  *
  49.  * Author:
  50.  * -------
  51.  *  Andy Ueng (mtk00490)
  52.  *
  53.  *============================================================================
  54.  *             HISTORY
  55.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  56.  *------------------------------------------------------------------------------
  57.  * $Revision$
  58.  * $Modtime$
  59.  * $Log$
  60.  * 
  61.  *------------------------------------------------------------------------------
  62.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  63.  *============================================================================
  64.  ****************************************************************************/
  65. //---------------------------------------------------------------------------
  66. #include <vcl.h>
  67. #pragma hdrstop
  68. USEFORM("factoryMETA_Factory.cpp", frmFatcory);
  69. USEFORM("factoryMETA_factory_AboutU.cpp", Form_About);
  70. USEFORM("factoryMETA_factory_reboot_go.cpp", Form_META_factory_reboot_go);
  71. USEFORM("Formform_UpdateParameter.cpp", frmUpdateParameter);
  72. USEFORM("Formform_BarcodeDownload.cpp", frmBarcodeDownload);
  73. USEFORM("Formform_BaseBand.cpp", frmBaseBand);
  74. USEFORM("Formform_Convert.cpp", frmConvert);
  75. USEFORM("Formform_DatabaseChange.cpp", frmDatabaseChange);
  76. USEFORM("Formform_FATEditor.cpp", frmFATEditor);
  77. USEFORM("Formform_GetVersion.cpp", frmGetVersion);
  78. USEFORM("Formform_IMEIDownload.cpp", frmIMEIDownload);
  79. USEFORM("Formform_InterSlotRampSetting.cpp", frmInterSlotRampSetting);
  80. USEFORM("Formform_Main.cpp", frmMainSel);
  81. USEFORM("Formform_MMIDataDownload.cpp", frmMMIDataDownload);
  82. USEFORM("Formform_RFApcProfile.cpp", frmApcProfile);
  83. USEFORM("Formform_RFPathLoss.cpp", frmPathLoss);
  84. USEFORM("Formform_RFTool.cpp", frmRFTool);
  85. USEFORM("Formform_ServiceCenter.cpp", frmServiceCenter);
  86. USEFORM("Formform_Audio.cpp", frmAudio);
  87. USEFORM("Formform_FirCoeffCal.cpp", frmFIRCoeffCal);
  88. USEFORM("Formform_FirResponse.cpp", frmFirResponse);
  89. USEFORM("Formform_RFGUIApcProfile.cpp", frmGUIApcProfile);
  90. USEFORM("factoryFormform_CalPath.cpp", frmCalPath);
  91. USEFORM("Formform_CFGRxPathLoss.cpp", frmCFGRxPathLoss);
  92. USEFORM("Formform_CFGAfc.cpp", frmCFGAfc);
  93. USEFORM("Formform_CFGCrystalAfc.cpp", frmCFGCrystalAfc);
  94. USEFORM("Formform_CFGTxPcl.cpp", frmCFGTxPcl);
  95. USEFORM("Formform_CFGADC.cpp", frmCFGAdc);
  96. USEFORM("Formform_Setting.cpp", frmSetting);
  97. USEFORM("Formform_CFGCommon.cpp", frmCFGCommon);
  98. USEFORM("Formform_32kFirCoeffCal.cpp", frm32kFirCoefCal);
  99. USEFORM("Formform_RF8PskApcProfile.cpp", frm8PskApcProfile);
  100. USEFORM("Formform_EpskInterSlotRampSetting.cpp", frmEpskInterSlotRampSetting);
  101. USEFORM("Formform_RFEPSKGUIApcProfile.cpp", frmEPSKGUIApcProfile);
  102. USEFORM("FormWiFiform_WiFiMCR.cpp", frmWiFiMCR);
  103. USEFORM("FormWiFiform_WiFiBBCR.cpp", frmWiFiBBCR);
  104. USEFORM("FormWiFiform_WiFiScript.cpp", frmWiFiScript);
  105. USEFORM("FormWiFiform_WiFiEEPROM.cpp", frmWiFiEEPROM);
  106. USEFORM("FormWiFiform_wifitxprofile.cpp", frmWiFiTxProfile);
  107. USEFORM("FormWiFiform_WiFI.cpp", frmWiFi);
  108. USEFORM("NVRAM EditorNVRAMEditor.cpp", frmNVRAMEditor);
  109. USEFORM("Formform_RFTXIQBBTX.cpp", frmTXIQBBTXSetting);
  110. USEFORM("Formform_RFCTBBTXRun.cpp", frmCTBBTXRunTimeSetting);
  111. USEFORM("Formform_RFTXIQBBTXRun.cpp", frmTXIQBBTXRunTimeSetting);
  112. USEFORM("Formform_RFMT6139Reg.cpp", frmMT6139Reg);
  113. USEFORM("FormBTform_BT.cpp", frmBT);
  114. USEFORM("Formform_UnitTest.cpp", frmUnitTest);
  115. USEFORM("Formform_PMICReg.cpp", frmPMICReg);
  116. USEFORM("Formform_RFMT6140CReg.cpp", frmMT6140CReg);
  117. USEFORM("Formform_RFMT6140BReg.cpp", frmMT6140BReg);
  118. USEFORM("FormWiFiform_WiFiALC2400M.cpp", frmWiFiALC2400M);
  119. USEFORM("Formform_Progress.cpp", m_frmProgress);
  120. USEFORM("FormFMform_FM.cpp", frmFM);
  121. USEFORM("FormTDMBform_TDMB.cpp", frmTDMB);
  122. USEFORM("Formform_Rtc32k.cpp", frmRTC32k);
  123. USEFORM("Formform_RFReg.cpp", frmRFReg);
  124. //---------------------------------------------------------------------------
  125. WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  126. {
  127.    try
  128.    {
  129.        Application->Initialize();
  130.        Application->CreateForm(__classid(TfrmMainSel), &frmMainSel);
  131.                  Application->CreateForm(__classid(TfrmPMICReg), &frmPMICReg);
  132.                  Application->CreateForm(__classid(TfrmBaseBand), &frmBaseBand);
  133.                  Application->CreateForm(__classid(TfrmPathLoss), &frmPathLoss);
  134.                  Application->CreateForm(__classid(TfrmApcProfile), &frmApcProfile);
  135.                  Application->CreateForm(__classid(TForm_About), &Form_About);
  136.                  Application->CreateForm(__classid(TForm_META_factory_reboot_go), &Form_META_factory_reboot_go);
  137.                  Application->CreateForm(__classid(TfrmConvert), &frmConvert);
  138.                  Application->CreateForm(__classid(TfrmMMIDataDownload), &frmMMIDataDownload);
  139.                  Application->CreateForm(__classid(TfrmFatcory), &frmFatcory);
  140.                  Application->CreateForm(__classid(TfrmInterSlotRampSetting), &frmInterSlotRampSetting);
  141.                  Application->CreateForm(__classid(TfrmIMEIDownload), &frmIMEIDownload);
  142.                  Application->CreateForm(__classid(TfrmGetVersion), &frmGetVersion);
  143.                  Application->CreateForm(__classid(TfrmBarcodeDownload), &frmBarcodeDownload);
  144.                  Application->CreateForm(__classid(TfrmUpdateParameter), &frmUpdateParameter);
  145.                  Application->CreateForm(__classid(TfrmFATEditor), &frmFATEditor);
  146.                  Application->CreateForm(__classid(TfrmServiceCenter), &frmServiceCenter);
  147.                  Application->CreateForm(__classid(TfrmDatabaseChange), &frmDatabaseChange);
  148.                  Application->CreateForm(__classid(TfrmFIRCoeffCal), &frmFIRCoeffCal);
  149.                  Application->CreateForm(__classid(TfrmFirResponse), &frmFirResponse);
  150.                  Application->CreateForm(__classid(TfrmGUIApcProfile), &frmGUIApcProfile);
  151.                  Application->CreateForm(__classid(TfrmCalPath), &frmCalPath);
  152.                  Application->CreateForm(__classid(TfrmCFGRxPathLoss), &frmCFGRxPathLoss);
  153.                  Application->CreateForm(__classid(TfrmCFGAfc), &frmCFGAfc);
  154.                  Application->CreateForm(__classid(TfrmCFGCrystalAfc), &frmCFGCrystalAfc);
  155.                  Application->CreateForm(__classid(TfrmCFGTxPcl), &frmCFGTxPcl);
  156.                  Application->CreateForm(__classid(TfrmCFGAdc), &frmCFGAdc);
  157.                  Application->CreateForm(__classid(TfrmSetting), &frmSetting);
  158.                  Application->CreateForm(__classid(TfrmCFGCommon), &frmCFGCommon);
  159.                  Application->CreateForm(__classid(Tfrm32kFirCoefCal), &frm32kFirCoefCal);
  160.                  Application->CreateForm(__classid(Tfrm8PskApcProfile), &frm8PskApcProfile);
  161.                  Application->CreateForm(__classid(TfrmEPSKGUIApcProfile), &frmEPSKGUIApcProfile);
  162.                  Application->CreateForm(__classid(TfrmEpskInterSlotRampSetting), &frmEpskInterSlotRampSetting);
  163.                  Application->CreateForm(__classid(TfrmEPSKGUIApcProfile), &frmEPSKGUIApcProfile);
  164.                  Application->CreateForm(__classid(TfrmWiFiMCR), &frmWiFiMCR);
  165.                  Application->CreateForm(__classid(TfrmWiFiBBCR), &frmWiFiBBCR);
  166.                  Application->CreateForm(__classid(TfrmWiFiTxProfile), &frmWiFiTxProfile);
  167.                  Application->CreateForm(__classid(TfrmWiFiScript), &frmWiFiScript);
  168.                  Application->CreateForm(__classid(TfrmWiFiEEPROM), &frmWiFiEEPROM);
  169.                  Application->CreateForm(__classid(TfrmWiFiTxProfile), &frmWiFiTxProfile);
  170.                  Application->CreateForm(__classid(TfrmWiFiALC2400M), &frmWiFiALC2400M);
  171.                  Application->CreateForm(__classid(TfrmWiFi), &frmWiFi);
  172.                  Application->CreateForm(__classid(TfrmNVRAMEditor), &frmNVRAMEditor);
  173.                  Application->CreateForm(__classid(TfrmTXIQBBTXSetting), &frmTXIQBBTXSetting);
  174.                  Application->CreateForm(__classid(TfrmCTBBTXRunTimeSetting), &frmCTBBTXRunTimeSetting);
  175.                  Application->CreateForm(__classid(TfrmTXIQBBTXRunTimeSetting), &frmTXIQBBTXRunTimeSetting);
  176.                  Application->CreateForm(__classid(TfrmMT6139Reg), &frmMT6139Reg);
  177.                  Application->CreateForm(__classid(TfrmMT6140CReg), &frmMT6140CReg);
  178.                  Application->CreateForm(__classid(TfrmMT6140BReg), &frmMT6140BReg);
  179.                  Application->CreateForm(__classid(TfrmRTC32k), &frmRTC32k);
  180.                  Application->CreateForm(__classid(TfrmRFTool), &frmRFTool);
  181.                  Application->CreateForm(__classid(TfrmAudio), &frmAudio);
  182.                  Application->CreateForm(__classid(TfrmBT), &frmBT);
  183.                  Application->CreateForm(__classid(TfrmUnitTest), &frmUnitTest);
  184.                  Application->CreateForm(__classid(Tm_frmProgress), &m_frmProgress);
  185.                  Application->CreateForm(__classid(TfrmFM), &frmFM);
  186.                  Application->CreateForm(__classid(TfrmTDMB), &frmTDMB);
  187.                  Application->CreateForm(__classid(TfrmRFReg), &frmRFReg);
  188.                  Application->Run();
  189.    }
  190.    catch (Exception &exception)
  191.    {
  192.        Application->ShowException(&exception);
  193.    }
  194.    return 0;
  195. }
  196. //---------------------------------------------------------------------------