cpsecplugins/cpadvancedsecplugin/src/advsecsettingssecuritymodulemodel_stub_p.cpp
author hgs
Thu, 14 Oct 2010 13:56:11 +0300
changeset 63 989397f9511c
permissions -rw-r--r--
201039_03
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
63
989397f9511c 201039_03
hgs
parents:
diff changeset
     1
/*
989397f9511c 201039_03
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
989397f9511c 201039_03
hgs
parents:
diff changeset
     3
* All rights reserved.
989397f9511c 201039_03
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
989397f9511c 201039_03
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0""
989397f9511c 201039_03
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
989397f9511c 201039_03
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
989397f9511c 201039_03
hgs
parents:
diff changeset
     8
*
989397f9511c 201039_03
hgs
parents:
diff changeset
     9
* Initial Contributors:
989397f9511c 201039_03
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
989397f9511c 201039_03
hgs
parents:
diff changeset
    11
*
989397f9511c 201039_03
hgs
parents:
diff changeset
    12
* Contributors:
989397f9511c 201039_03
hgs
parents:
diff changeset
    13
*
989397f9511c 201039_03
hgs
parents:
diff changeset
    14
* Description:  Generic stub for platform specific private security module model
989397f9511c 201039_03
hgs
parents:
diff changeset
    15
*
989397f9511c 201039_03
hgs
parents:
diff changeset
    16
*/
989397f9511c 201039_03
hgs
parents:
diff changeset
    17
989397f9511c 201039_03
hgs
parents:
diff changeset
    18
#include "advsecsettingssecuritymodulemodel_stub_p.h"
989397f9511c 201039_03
hgs
parents:
diff changeset
    19
989397f9511c 201039_03
hgs
parents:
diff changeset
    20
989397f9511c 201039_03
hgs
parents:
diff changeset
    21
// ======== MEMBER FUNCTIONS ========
989397f9511c 201039_03
hgs
parents:
diff changeset
    22
989397f9511c 201039_03
hgs
parents:
diff changeset
    23
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    24
// AdvSecSettingsSecurityModuleModelPrivate::AdvSecSettingsSecurityModuleModelPrivate()
989397f9511c 201039_03
hgs
parents:
diff changeset
    25
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    26
//
989397f9511c 201039_03
hgs
parents:
diff changeset
    27
AdvSecSettingsSecurityModuleModelPrivate::AdvSecSettingsSecurityModuleModelPrivate(
989397f9511c 201039_03
hgs
parents:
diff changeset
    28
    AdvSecSettingsSecurityModuleModel *q) : QObject(0), q_ptr(q)
989397f9511c 201039_03
hgs
parents:
diff changeset
    29
{
989397f9511c 201039_03
hgs
parents:
diff changeset
    30
}
989397f9511c 201039_03
hgs
parents:
diff changeset
    31
989397f9511c 201039_03
hgs
parents:
diff changeset
    32
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    33
// AdvSecSettingsSecurityModuleModelPrivate::~AdvSecSettingsSecurityModuleModelPrivate()
989397f9511c 201039_03
hgs
parents:
diff changeset
    34
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    35
//
989397f9511c 201039_03
hgs
parents:
diff changeset
    36
AdvSecSettingsSecurityModuleModelPrivate::~AdvSecSettingsSecurityModuleModelPrivate()
989397f9511c 201039_03
hgs
parents:
diff changeset
    37
{
989397f9511c 201039_03
hgs
parents:
diff changeset
    38
}
989397f9511c 201039_03
hgs
parents:
diff changeset
    39
989397f9511c 201039_03
hgs
parents:
diff changeset
    40
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    41
// AdvSecSettingsSecurityModuleModelPrivate::initialize()
989397f9511c 201039_03
hgs
parents:
diff changeset
    42
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    43
//
989397f9511c 201039_03
hgs
parents:
diff changeset
    44
void AdvSecSettingsSecurityModuleModelPrivate::initialize()
989397f9511c 201039_03
hgs
parents:
diff changeset
    45
{
989397f9511c 201039_03
hgs
parents:
diff changeset
    46
    q_ptr->handleInitializeCompleted();
989397f9511c 201039_03
hgs
parents:
diff changeset
    47
}
989397f9511c 201039_03
hgs
parents:
diff changeset
    48
989397f9511c 201039_03
hgs
parents:
diff changeset
    49
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    50
// AdvSecSettingsSecurityModuleModelPrivate::moduleCount()
989397f9511c 201039_03
hgs
parents:
diff changeset
    51
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    52
//
989397f9511c 201039_03
hgs
parents:
diff changeset
    53
int AdvSecSettingsSecurityModuleModelPrivate::moduleCount() const
989397f9511c 201039_03
hgs
parents:
diff changeset
    54
{
989397f9511c 201039_03
hgs
parents:
diff changeset
    55
    return 0;
989397f9511c 201039_03
hgs
parents:
diff changeset
    56
}
989397f9511c 201039_03
hgs
parents:
diff changeset
    57
989397f9511c 201039_03
hgs
parents:
diff changeset
    58
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    59
// AdvSecSettingsSecurityModuleModelPrivate::moduleLabelsAndLocations()
989397f9511c 201039_03
hgs
parents:
diff changeset
    60
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    61
//
989397f9511c 201039_03
hgs
parents:
diff changeset
    62
QMap<QString,QString> AdvSecSettingsSecurityModuleModelPrivate::moduleLabelsAndLocations() const
989397f9511c 201039_03
hgs
parents:
diff changeset
    63
{
989397f9511c 201039_03
hgs
parents:
diff changeset
    64
    QMap<QString,QString> emptyMap;
989397f9511c 201039_03
hgs
parents:
diff changeset
    65
    return emptyMap;
989397f9511c 201039_03
hgs
parents:
diff changeset
    66
}
989397f9511c 201039_03
hgs
parents:
diff changeset
    67
989397f9511c 201039_03
hgs
parents:
diff changeset
    68
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    69
// AdvSecSettingsSecurityModuleModelPrivate::getModuleStatus()
989397f9511c 201039_03
hgs
parents:
diff changeset
    70
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    71
//
989397f9511c 201039_03
hgs
parents:
diff changeset
    72
void AdvSecSettingsSecurityModuleModelPrivate::getModuleStatus(int /*moduleIndex*/)
989397f9511c 201039_03
hgs
parents:
diff changeset
    73
{
989397f9511c 201039_03
hgs
parents:
diff changeset
    74
    q_ptr->handleStatusCompleted(0, false, false);
989397f9511c 201039_03
hgs
parents:
diff changeset
    75
}
989397f9511c 201039_03
hgs
parents:
diff changeset
    76
989397f9511c 201039_03
hgs
parents:
diff changeset
    77
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    78
// AdvSecSettingsSecurityModuleModelPrivate::setPinCodeRequestState()
989397f9511c 201039_03
hgs
parents:
diff changeset
    79
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    80
//
989397f9511c 201039_03
hgs
parents:
diff changeset
    81
void AdvSecSettingsSecurityModuleModelPrivate::setPinCodeRequestState(
989397f9511c 201039_03
hgs
parents:
diff changeset
    82
    int /*moduleIndex*/, bool /*isRequested*/)
989397f9511c 201039_03
hgs
parents:
diff changeset
    83
{
989397f9511c 201039_03
hgs
parents:
diff changeset
    84
    q_ptr->handlePinCodeRequestSet();
989397f9511c 201039_03
hgs
parents:
diff changeset
    85
}
989397f9511c 201039_03
hgs
parents:
diff changeset
    86
989397f9511c 201039_03
hgs
parents:
diff changeset
    87
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    88
// AdvSecSettingsSecurityModuleModelPrivate::changePinCode()
989397f9511c 201039_03
hgs
parents:
diff changeset
    89
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    90
//
989397f9511c 201039_03
hgs
parents:
diff changeset
    91
void AdvSecSettingsSecurityModuleModelPrivate::changePinCode(int /*moduleIndex*/)
989397f9511c 201039_03
hgs
parents:
diff changeset
    92
{
989397f9511c 201039_03
hgs
parents:
diff changeset
    93
    q_ptr->handlePinCodeChanged();
989397f9511c 201039_03
hgs
parents:
diff changeset
    94
}
989397f9511c 201039_03
hgs
parents:
diff changeset
    95
989397f9511c 201039_03
hgs
parents:
diff changeset
    96
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    97
// AdvSecSettingsSecurityModuleModelPrivate::closeModule()
989397f9511c 201039_03
hgs
parents:
diff changeset
    98
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    99
//
989397f9511c 201039_03
hgs
parents:
diff changeset
   100
void AdvSecSettingsSecurityModuleModelPrivate::closeModule(int /*moduleIndex*/)
989397f9511c 201039_03
hgs
parents:
diff changeset
   101
{
989397f9511c 201039_03
hgs
parents:
diff changeset
   102
    q_ptr->handleModuleClosed();
989397f9511c 201039_03
hgs
parents:
diff changeset
   103
}
989397f9511c 201039_03
hgs
parents:
diff changeset
   104
989397f9511c 201039_03
hgs
parents:
diff changeset
   105
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
   106
// AdvSecSettingsSecurityModuleModelPrivate::isSigningPinSupported()
989397f9511c 201039_03
hgs
parents:
diff changeset
   107
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
   108
//
989397f9511c 201039_03
hgs
parents:
diff changeset
   109
bool AdvSecSettingsSecurityModuleModelPrivate::isSigningPinSupported(int /*moduleIndex*/) const
989397f9511c 201039_03
hgs
parents:
diff changeset
   110
{
989397f9511c 201039_03
hgs
parents:
diff changeset
   111
    return false;
989397f9511c 201039_03
hgs
parents:
diff changeset
   112
}
989397f9511c 201039_03
hgs
parents:
diff changeset
   113
989397f9511c 201039_03
hgs
parents:
diff changeset
   114
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
   115
// AdvSecSettingsSecurityModuleModelPrivate::changeSigningPinCode()
989397f9511c 201039_03
hgs
parents:
diff changeset
   116
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
   117
//
989397f9511c 201039_03
hgs
parents:
diff changeset
   118
void AdvSecSettingsSecurityModuleModelPrivate::changeSigningPinCode(int /*moduleIndex*/)
989397f9511c 201039_03
hgs
parents:
diff changeset
   119
{
989397f9511c 201039_03
hgs
parents:
diff changeset
   120
    q_ptr->handleSigningPinCodeChanged();
989397f9511c 201039_03
hgs
parents:
diff changeset
   121
}
989397f9511c 201039_03
hgs
parents:
diff changeset
   122
989397f9511c 201039_03
hgs
parents:
diff changeset
   123
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
   124
// AdvSecSettingsSecurityModuleModelPrivate::isDeletable()
989397f9511c 201039_03
hgs
parents:
diff changeset
   125
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
   126
//
989397f9511c 201039_03
hgs
parents:
diff changeset
   127
bool AdvSecSettingsSecurityModuleModelPrivate::isDeletable(int /*moduleIndex*/) const
989397f9511c 201039_03
hgs
parents:
diff changeset
   128
{
989397f9511c 201039_03
hgs
parents:
diff changeset
   129
    return false;
989397f9511c 201039_03
hgs
parents:
diff changeset
   130
}
989397f9511c 201039_03
hgs
parents:
diff changeset
   131
989397f9511c 201039_03
hgs
parents:
diff changeset
   132
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
   133
// AdvSecSettingsSecurityModuleModelPrivate::deleteModule()
989397f9511c 201039_03
hgs
parents:
diff changeset
   134
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
   135
//
989397f9511c 201039_03
hgs
parents:
diff changeset
   136
void AdvSecSettingsSecurityModuleModelPrivate::deleteModule(int /*moduleIndex*/)
989397f9511c 201039_03
hgs
parents:
diff changeset
   137
{
989397f9511c 201039_03
hgs
parents:
diff changeset
   138
    q_ptr->handleModuleDeleted();
989397f9511c 201039_03
hgs
parents:
diff changeset
   139
}
989397f9511c 201039_03
hgs
parents:
diff changeset
   140