/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* * The contents of this file are subject to the Netscape Public * License Version 1.1 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.mozilla.org/NPL/ * * Software distributed under the License is distributed on an "AS * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * implied. See the License for the specific language governing * rights and limitations under the License. * * The Original Code is Mozilla Communicator client code, * released March 31, 1998. * * The Initial Developer of the Original Code is Netscape Communications * Corporation. Portions created by Netscape are * Copyright (C) 1998 Netscape Communications Corporation. All * Rights Reserved. * * Contributor(s): * Samir Gehani */ #ifndef _NS_SETUPTYPEDLG_H_ #define _NS_SETUPTYPEDLG_H_ #include #include "nsXInstallerDlg.h" #include "nsSetupType.h" #include "nsObjectIgnore.h" #include "nsLegacyCheck.h" class nsSetupTypeDlg : public nsXInstallerDlg { public: nsSetupTypeDlg(); ~nsSetupTypeDlg(); /*---------------------------------------------------------------------* * Navigation *---------------------------------------------------------------------*/ static void Back(GtkWidget *aWidget, gpointer aData); static void Next(GtkWidget *aWidget, gpointer aData); int Parse(nsINIParser *aParser); int Show(int aDirection); int Hide(int aDirection); static void SelectFolder(GtkWidget *aWidget, gpointer aData); static void SelectFolderOK(GtkWidget *aWidget, GtkFileSelection *aFileSel); static void SelectFolderCancel(GtkWidget *aWidget, GtkFileSelection *aFileSel); static void RadBtnToggled(GtkWidget *aWidget, gpointer aData); static int VerifyDestination(); static void NoPermsOK(GtkWidget *aWidget, gpointer aData); static void CreateDestYes(GtkWidget *aWidget, gpointer aData); static void CreateDestNo(GtkWidget *aWidget, gpointer aData); static int DeleteOldInst(); static void DeleteInstDelete(GtkWidget *aWidget, gpointer aData); static void DeleteInstCancel(GtkWidget *aWidget, gpointer aData); static int ConstructPath(char *aDest, char *aTrunk, char *aLeaf); static int CheckDestEmpty(); static int VerifyDiskSpace(); static int DSAvailable(); static int DSRequired(); static void NoDiskSpaceOK(GtkWidget *aWidget, gpointer aData); /*---------------------------------------------------------------------* * INI Properties *---------------------------------------------------------------------*/ int SetMsg0(char *aMsg); char *GetMsg0(); int AddSetupType(nsSetupType *aSetupType); nsSetupType *GetSetupTypeList(); int GetNumSetupTypes(); nsSetupType *GetSelectedSetupType(); private: void FreeSetupTypeList(); void FreeLegacyChecks(); char *mMsg0; nsSetupType *mSetupTypeList; }; #endif /* _NS_SETUPTYPEDLG_H_ */