text:
CREATE TABLE IF NOT EXISTS `media` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `filename` varchar(120) NOT NULL,
  `caption` varchar(240) DEFAULT NULL,
  `meta` varchar(240) DEFAULT NULL,
  `size` int(2) DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  KEY `id` (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

INSERT INTO `media` (`id`, `filename`, `caption`, `meta`, `size`, `created_at`, `updated_at`) VALUES
(5, '1325127784buckylasek.jpg', 'Bucky Lasek', 'bucky lasek', 2, '2011-12-29 03:03:04', '2011-12-29 09:40:08'),
(6, '1325132404sydneybridge.jpg', 'Sydney ', '', 2, '2011-12-29 04:20:05', '2011-12-29 04:20:35');

CREATE TABLE IF NOT EXISTS `pages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `slug` varchar(80) NOT NULL,
  `title` text NOT NULL,
  `summary` text NOT NULL,
  `content` text NOT NULL,
  `publish` int(3) DEFAULT NULL,
  `level` int(3) NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  KEY `id` (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;

INSERT INTO `pages` (`id`, `slug`, `title`, `summary`, `content`, `publish`, `level`, `created_at`, `updated_at`) VALUES
(7, 'about', 'About', 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros.', 'Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.\r\n\r\nPhasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi.', 1, 0, '2011-12-28 12:27:05', '2011-12-29 07:04:47'),
(2, 'photo', 'Photo', 'This is a photo', 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.\r\n\r\nDonec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.\r\n\r\nMorbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.', 1, 0, '2011-12-28 01:59:37', '2011-12-29 09:40:43');

CREATE TABLE IF NOT EXISTS `pages_media` (
  `page_id` int(11) DEFAULT NULL,
  `media_id` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

INSERT INTO `pages_media` (`page_id`, `media_id`) VALUES
(2, 5),
(7, 6);

CREATE TABLE IF NOT EXISTS `users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `firstname` varchar(140) NOT NULL,
  `lastname` varchar(140) NOT NULL,
  `email` varchar(120) NOT NULL,
  `password` varchar(80) NOT NULL,
  `role` varchar(20) NOT NULL DEFAULT 'public',
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

INSERT INTO `users` (`id`, `firstname`, `lastname`, `email`, `password`, `role`, `created_at`, `updated_at`) VALUES
(3, 'admin', 'admin', 'admin@example.com', '$2a$08$rsOxrYRlvoWIBERHnT5bt.rTxJTAPHhDUD9K3I4DJCOGxJ3CiU7Tm', 'admin', '2011-12-29 07:29:35', '2011-12-29 07:29:35');


text:
#ifndef BERRYPERSPECTIVEDESCRIPTOR_H_
#define BERRYPERSPECTIVEDESCRIPTOR_H_

#include <berryIConfigurationElement.h>

#include "berryIPerspectiveDescriptor.h"
#include "berryIPerspectiveFactory.h"
#include "berryIMemento.h"

#include <string>

namespace berry {

/**
 * \ingroup org_blueberry_ui_internal
 *
 * PerspectiveDescriptor.
 *

 * A PerspectiveDesciptor has 3 states:
 *

 *

 *
It isPredefined(), in which case it was defined from an
 * extension point.

 *
It isPredefined() and hasCustomFile, in
 * which case the user has customized a predefined perspective.

 *
It hasCustomFile, in which case the user created a new
 * perspective.

 *

 *
 */
class PerspectiveDescriptor : public IPerspectiveDescriptor {

public:
  berryObjectMacro(PerspectiveDescriptor);

private:

  std::string id;

   std::string pluginId;

   std::string originalId;

   std::string label;

   std::string className;

   std::string description;

   bool singleton;

   bool fixed;

   mutable ImageDescriptor::Pointer imageDescriptor;

   IConfigurationElement::Pointer configElement;

  /**
   * Create a new empty descriptor.
   *
   * @param id
   *            the id of the new descriptor
   * @param label
   *            the label of the new descriptor
   * @param originalDescriptor
   *            the descriptor that this descriptor is based on
   */
  public: PerspectiveDescriptor(const std::string& id, const std::string& label,
      PerspectiveDescriptor::Pointer originalDescriptor);

  /**
   * Create a descriptor from a config element.
   *
   * @param id
   *            the id of the element to create
   * @param configElement
   *            the element to base this perspective on
   * @throws CoreException
   *             thrown if there are any missing attributes
   */
  public: PerspectiveDescriptor(const std::string& id, IConfigurationElement::Pointer configElement);

  /**
   * Creates a factory for a predefined perspective. If the perspective is not
   * predefined return null.
   *
   * @return the IPerspectiveFactory or null
   * @throws CoreException
   *             if the object could not be instantiated.
   */
  public: IPerspectiveFactory::Pointer CreateFactory();

  /**
   * Deletes the custom definition for a perspective..
   */
  public: void DeleteCustomDefinition();

  /*
   * (non-Javadoc)
   *
   * @see org.blueberry.ui.IPerspectiveDescriptor#getDescription()
   */
  public: std::string GetDescription() const;

  /**
   * Returns whether or not this perspective is fixed.
   *
   * @return whether or not this perspective is fixed
   */
  public: bool GetFixed() const;

  /*
   * (non-Javadoc)
   *
   * @see org.blueberry.ui.IPerspectiveDescriptor#getId()
   */
  public: std::string GetId() const;

  public: std::string GetPluginId() const;

  /*
   * (non-Javadoc)
   *
   * @see org.blueberry.ui.IPerspectiveDescriptor#getImageDescriptor()
   */
  public: ImageDescriptor::Pointer GetImageDescriptor() const;

  /*
   * (non-Javadoc)
   *
   * @see org.blueberry.ui.IPerspectiveDescriptor#getLabel()
   */
  public: std::string GetLabel() const;
  /**
   * Return the original id of this descriptor.
   *
   * @return the original id of this descriptor
   */
  public: std::string GetOriginalId() const;

  /**
   * Returns true if this perspective has a custom definition.
   *
   * @return whether this perspective has a custom definition
   */
  public: bool HasCustomDefinition() const;

  /**
   * Returns true if this perspective wants to be default.
   *
   * @return whether this perspective wants to be default
   */
  public: bool HasDefaultFlag() const;

  /**
   * Returns true if this perspective is predefined by an
   * extension.
   *
   * @return boolean whether this perspective is predefined by an extension
   */
  public: bool IsPredefined() const;

  /**
   * Returns true if this perspective is a singleton.
   *
   * @return whether this perspective is a singleton
   */
  public: bool IsSingleton() const;

  /**
   * Restore the state of a perspective from a memento.
   *
   * @param memento
   *            the memento to restore from
   * @return the IStatus of the operation
   * @see org.blueberry.ui.IPersistableElement
   */
  public: bool RestoreState(IMemento::Pointer memento);

  /**
   * Revert to the predefined extension template. Does nothing if this
   * descriptor is user defined.
   */
  public: void RevertToPredefined();

  /**
   * Save the state of a perspective to a memento.
   *
   * @param memento
   *            the memento to restore from
   * @return the IStatus of the operation
   * @see org.blueberry.ui.IPersistableElement
   */
  public: bool SaveState(IMemento::Pointer memento);

  /**
   * Return the configuration element used to create this perspective, if one
   * was used.
   *
   * @return the configuration element used to create this perspective
   * @since 3.0
   */
  public: IConfigurationElement::Pointer GetConfigElement() const;

  /**
   * Returns the factory class name for this descriptor.
   *
   * @return the factory class name for this descriptor
   * @since 3.1
   */
  public: std::string GetFactoryClassName() const;

};

}

#endif /*BERRYPERSPECTIVEDESCRIPTOR_H_*/

redpajama_set_name: RedPajamaGithub