VBoxVMSettingsSFDetails.h revision 174cdbfef4dce606fbb9a808897e570c23631595
1N/A/** @file
1N/A *
1N/A * VBox frontends: Qt4 GUI ("VirtualBox"):
1N/A * VBoxVMSettingsSFDetails class declaration
1N/A */
1N/A
1N/A/*
1N/A * Copyright (C) 2008 Sun Microsystems, Inc.
1N/A *
1N/A * This file is part of VirtualBox Open Source Edition (OSE), as
1N/A * available from http://www.virtualbox.org. This file is free software;
1N/A * you can redistribute it and/or modify it under the terms of the GNU
1N/A * General Public License (GPL) as published by the Free Software
1N/A * Foundation, in version 2 as it comes in the "COPYING" file of the
1N/A * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
1N/A * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
1N/A *
1N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
1N/A * Clara, CA 95054 USA or visit http://www.sun.com if you need
1N/A * additional information or have any questions.
1N/A */
1N/A
1N/A#ifndef __VBoxVMSettingsSFDetails_h__
1N/A#define __VBoxVMSettingsSFDetails_h__
1N/A
1N/A#include "VBoxVMSettingsSFDetails.gen.h"
1N/A#include "QIDialog.h"
1N/A#include "QIWithRetranslateUI.h"
1N/A#include "VBoxVMSettingsSF.h"
1N/A
1N/Aclass VBoxVMSettingsSFDetails : public QIWithRetranslateUI2<QIDialog>,
1N/A public Ui::VBoxVMSettingsSFDetails
1N/A{
1N/A Q_OBJECT;
1N/A
1N/Apublic:
1N/A
1N/A enum DialogType
1N/A {
1N/A AddType,
1N/A EditType
1N/A };
1N/A
1N/A VBoxVMSettingsSFDetails (DialogType aType,
1N/A bool aEnableSelector, /* for "permanent" checkbox */
1N/A const SFoldersNameList &aUsedNames,
1N/A QWidget *aParent = NULL);
1N/A
1N/A void setPath (const QString &aPath);
1N/A QString path() const;
1N/A
1N/A void setName (const QString &aName);
1N/A QString name() const;
1N/A
1N/A void setWriteable (bool aWriteable);
1N/A bool isWriteable() const;
1N/A
1N/A void setPermanent (bool aPermanent);
1N/A bool isPermanent() const;
1N/A
1N/Aprotected:
1N/A
1N/A void retranslateUi();
1N/A
1N/Aprivate slots:
1N/A
1N/A void onSelectPath();
1N/A void validate();
1N/A
1N/Aprivate:
1N/A
1N/A /* Private member vars */
1N/A DialogType mType;
1N/A bool mUsePermanent;
1N/A SFoldersNameList mUsedNames;
1N/A};
1N/A
1N/A#endif // __VBoxVMSettingsSFDetails_h__
1N/A
1N/A