text: /* $Id: UIMachineSettingsSFDetails.h $ */
  /** @file
   * VBox Qt GUI - UIMachineSettingsSFDetails class declaration.
   */
  
  /*
   * Copyright (C) 2008-2017 Oracle Corporation
   *
   * This file is part of VirtualBox Open Source Edition (OSE), as
   * available from http://www.virtualbox.org. This file is free software;
   * you can redistribute it and/or modify it under the terms of the GNU
   * General Public License (GPL) as published by the Free Software
   * Foundation, in version 2 as it comes in the "COPYING" file of the
   * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
   * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
   */
  
  #ifndef __UIMachineSettingsSFDetails_h__
  #define __UIMachineSettingsSFDetails_h__
  
  /* Includes */
  #include "UIMachineSettingsSFDetails.gen.h"
  #include "QIDialog.h"
  #include "QIWithRetranslateUI.h"
  #include "UIMachineSettingsSF.h"
  
  /* Shared folders details dialog: */
  class UIMachineSettingsSFDetails : public QIWithRetranslateUI2<QIDialog>,
                                     public Ui::UIMachineSettingsSFDetails
  {
      Q_OBJECT;
  
  public:
  
      enum DialogType
      {
          AddType,
          EditType
      };
  
      UIMachineSettingsSFDetails(DialogType type,
                                 bool fEnableSelector, /* for "permanent" checkbox */
                                 const QStringList &usedNames,
                                 QWidget *pParent = 0);
  
      void setPath(const QString &strPath);
      QString path() const;
  
      void setName(const QString &strName);
      QString name() const;
  
      void setWriteable(bool fWriteable);
      bool isWriteable() const;
  
      void setAutoMount(bool fAutoMount);
      bool isAutoMounted() const;
  
      void setPermanent(bool fPermanent);
      bool isPermanent() const;
  
  protected:
  
      void retranslateUi();
  
  private slots:
  
      void sltSelectPath();
      void sltValidate();
  
  private:
  
      DialogType   m_type;
      bool         m_fUsePermanent;
      QStringList  m_usedNames;
  };
  
  #endif // __UIMachineSettingsSFDetails_h__
  
  