Back to index

easystroke  0.5.5.1
Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends
ActionDB Class Reference

#include <actiondb.h>

Collaboration diagram for ActionDB:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::map< Unique
*, StrokeInfo >
::const_iterator 
const_iterator

Public Member Functions

const const_iterator begin () const
const const_iterator end () const
ActionListDiffget_root ()
const ActionListDiffget_action_list (std::string wm_class) const
 ActionDB ()

Public Attributes

std::map< std::string,
ActionListDiff * > 
apps

Private Member Functions

template<class Archive >
void load (Archive &ar, const unsigned int version)
template<class Archive >
void save (Archive &ar, const unsigned int version) const

Private Attributes

ActionListDiff root

Friends

class boost::serialization::access
class ActionDBWatcher

Detailed Description

Definition at line 381 of file actiondb.h.


Member Typedef Documentation

Definition at line 393 of file actiondb.h.


Constructor & Destructor Documentation

Definition at line 158 of file actiondb.cc.

                   {
       root.name = _("Default");
}

Member Function Documentation

const const_iterator ActionDB::begin ( ) const [inline]

Definition at line 394 of file actiondb.h.

{ return root.added.begin(); }

Here is the caller graph for this function:

const const_iterator ActionDB::end ( ) const [inline]

Definition at line 395 of file actiondb.h.

{ return root.added.end(); }

Here is the caller graph for this function:

const ActionListDiff* ActionDB::get_action_list ( std::string  wm_class) const [inline]

Definition at line 399 of file actiondb.h.

                                                                       {
              std::map<std::string, ActionListDiff *>::const_iterator i = apps.find(wm_class);
              return i == apps.end() ? &root : i->second;
       }

Here is the caller graph for this function:

Definition at line 397 of file actiondb.h.

{ return &root; }

Here is the caller graph for this function:

template<class Archive >
void ActionDB::load ( Archive &  ar,
const unsigned int  version 
) [private]

Definition at line 162 of file actiondb.cc.

                                                                                    {
       if (version >= 2) {
              ar & root;
       }
       if (version == 1) {
              std::map<int, StrokeInfo> strokes;
              ar & strokes;
              for (std::map<int, StrokeInfo>::iterator i = strokes.begin(); i != strokes.end(); ++i)
                     root.add(i->second);
       }
       if (version == 0) {
              std::map<std::string, StrokeInfo> strokes;
              ar & strokes;
              for (std::map<std::string, StrokeInfo>::iterator i = strokes.begin(); i != strokes.end(); ++i) {
                     i->second.name = i->first;
                     root.add(i->second);
              }
       }

       root.fix_tree(version == 2);
       root.add_apps(apps);
       root.name = _("Default");
}
template<class Archive >
void ActionDB::save ( Archive &  ar,
const unsigned int  version 
) const [private]

Definition at line 186 of file actiondb.cc.

                                                                                          {
       ar & root;
}

Friends And Related Function Documentation

friend class ActionDBWatcher [friend]

Definition at line 383 of file actiondb.h.

friend class boost::serialization::access [friend]

Definition at line 382 of file actiondb.h.


Member Data Documentation

std::map<std::string, ActionListDiff *> ActionDB::apps

Definition at line 389 of file actiondb.h.

Definition at line 391 of file actiondb.h.


The documentation for this class was generated from the following files: