~ubuntu-branches/ubuntu/maverick/vmware-view-open-client/maverick

« back to all changes in this revision

Viewing changes to gtk/mstsc.hh

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2010-06-04 17:45:04 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100604174504-zjltuc0hdp4mv7de
Tags: 4.5.0-264434+dfsg-1
* Merging upstream version 4.5.0-264434+dfsg.
* Updating date and version header in manpage.
* Rediffing doc-pdf.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*********************************************************
 
2
 * Copyright (C) 2010 VMware, Inc. All rights reserved.
 
3
 *
 
4
 * This file is part of VMware View Open Client.
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify it
 
7
 * under the terms of the GNU Lesser General Public License as published
 
8
 * by the Free Software Foundation version 2.1 and no later version.
 
9
 *
 
10
 * This program is released with an additional exemption that
 
11
 * compiling, linking, and/or using the OpenSSL libraries with this
 
12
 * program is allowed.
 
13
 *
 
14
 * This program is distributed in the hope that it will be useful, but
 
15
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 
16
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the Lesser GNU General Public
 
17
 * License for more details.
 
18
 *
 
19
 * You should have received a copy of the GNU Lesser General Public License
 
20
 * along with this program; if not, write to the Free Software Foundation, Inc.,
 
21
 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA.
 
22
 *
 
23
 *********************************************************/
 
24
 
 
25
/*
 
26
 * mstsc.hh --
 
27
 *
 
28
 *    Simple command line wrapper for mstsc.
 
29
 *
 
30
 */
 
31
 
 
32
#ifndef MSTSC_HH
 
33
#define MSTSC_HH
 
34
 
 
35
 
 
36
#include <vector>
 
37
 
 
38
 
 
39
#include "brokerXml.hh"
 
40
#include "procHelper.hh"
 
41
 
 
42
 
 
43
namespace cdk {
 
44
 
 
45
 
 
46
class Mstsc
 
47
   : virtual public ProcHelper
 
48
{
 
49
public:
 
50
   virtual ~Mstsc() { }
 
51
   static inline bool GetIsProtocolAvailable() {
 
52
        return GetIsInPath(MstscBinary);
 
53
   }
 
54
   void Start(const BrokerXml::DesktopConnection &connection,
 
55
              const Util::Rect *geometry,
 
56
              GdkScreen *screen = NULL);
 
57
 
 
58
private:
 
59
   static const Util::string MstscBinary;
 
60
};
 
61
 
 
62
 
 
63
} // namespace cdk
 
64
 
 
65
 
 
66
#endif // MSTSC_HH