/* ====================================================================
 * Copyright (c) 2008  Martin Hauner
 *                     http://subcommander.tigris.org
 *
 * Subcommander is licensed as described in the file doc/COPYING, which
 * you should have received as part of this distribution.
 * ====================================================================
 */

#ifndef _SC_WCVIEWVIEWINDEX_H
#define _SC_WCVIEWVIEWINDEX_H

// sc
#include "util/String.h"

// qt
class QModelIndex;

/** Helper clas to reduce noise when asking for index data. */
class WcViewIndex
{
public:
  WcViewIndex( const QModelIndex& index );

  bool dir() const;
  sc::String name() const;

private:
  const QModelIndex& _idx;
};

#endif // _SC_WCVIEWVIEWINDEX_H
