userguide/inc/HelpCommon.h
changeset 13 1eb8015a8491
child 15 c0dfc135a46c
equal deleted inserted replaced
12:2cd891dccbbe 13:1eb8015a8491
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef HELPCOMMON_H
       
    19 #define HELPCOMMON_H
       
    20 
       
    21 #include <Qt>
       
    22 
       
    23 // words
       
    24 const char* const BACKSLASH = "/";
       
    25 const char* const SPECIALCHAR = "+";
       
    26 const char* const HASHMARK = "#";
       
    27 
       
    28 // help content file name
       
    29 const char* const XHTMLPATH = "resource/xhtml/";
       
    30 const char* const CONTENTSZIP = "contents.zip";
       
    31 const char* const INDEXXML = "index.xml";
       
    32 const char* const KEYWORDXML = "keywords.xml";
       
    33 const char* const METAXML = "meta.xml";
       
    34 
       
    35 // path
       
    36 const char* const PATH_ROOT = "z:/";
       
    37 const char* const PATH_TRANSLATIONS = "Z:/resource/qt/translations/";
       
    38 
       
    39 // URL
       
    40 const char* const URL_HEADER_APP = "app://";
       
    41 const char* const URL_HEADER_HTTP = "http://";
       
    42 const char* const URL_HEADER_HTTPS = "https://";
       
    43 const char* const URL_HEADER_FTP = "ftp://";
       
    44 const char* const URL_HEADER_LOCAL = "file:///";
       
    45 const char* const URL_LINK_SUPPORT= "Link to Nokia.com/support";
       
    46 
       
    47 // text
       
    48 const char* const TXT_TITLE = "txt_user_guide_title_user_guide";
       
    49 const char* const TXT_BUTTON_ALL = "txt_common_button_all";
       
    50 const char* const TXT_BUTTON_FIND = "txt_common_button_find";
       
    51 const char* const TXT_BUTTON_LINK_SUPPORT = "txt_user_guide_button_link_to_nokiacomsupport";
       
    52 
       
    53 // docml
       
    54 const char* const QRC_DOCML_CATEGORY = ":/xml/categoryView.docml";
       
    55 const char* const QRC_DOCML_CONTENTS = ":/xml/contentsView.docml";
       
    56 const char* const DOCML_ACTION_ALL = "action_all";
       
    57 const char* const DOCML_ACTION_SEARCH = "action_find";
       
    58 const char* const DOCML_ACTION_LINK_NOKIA = "action_online_support";
       
    59 const char* const DOCML_VIEW_CATEGORY = "view_category";
       
    60 const char* const DOCML_VIEW_CONTENTS = "view_contents";
       
    61 const char* const DOCML_LIST_CATEGORY_ALL = "list_category_all";
       
    62 const char* const DOCML_LIST_CATEGORY_SEARCH = "list_category_search";
       
    63 const char* const DOCML_SEARCH_PANEL_CATEGORY = "search_panel_category";
       
    64 const char* const DOCML_TOOLBAR = "toolbar";
       
    65 const char* const DOCML_BROWSER_CONTENTS = "browser_contents";
       
    66 const char* const DOCML_BROWSER = "browser";
       
    67 const char* const DOCML_LAYOUT_CATEGORY_ALL = "layout_category_all";
       
    68 const char* const DOCML_LAYOUT_CATEGORY_SEARCH = "layout_category_find";
       
    69 const char* const DOCML_LAYOUT_CATEGORY_SEARCH_NO_SRHPAL = "layout_category_find_no_searchpanel";
       
    70 
       
    71 
       
    72 // enum
       
    73 
       
    74 enum HelpViewName
       
    75 {
       
    76     HelpViewCategory = 0,
       
    77     HelpViewContents
       
    78 };
       
    79 
       
    80 enum HelpItemRole
       
    81 {
       
    82     UidRole = Qt::UserRole + 1,
       
    83 	HrefRole,
       
    84     KeywordRole
       
    85 };
       
    86 
       
    87 #endif //HELPCOMMON_H
       
    88