mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-11 18:26:31 +03:00
35 lines
985 B
Objective-C
35 lines
985 B
Objective-C
//
|
|
// LNStandardVersionComparator.h
|
|
// Sparkle
|
|
//
|
|
// Created by Andy Matuschak on 12/21/07.
|
|
// Copyright 2007 Andy Matuschak. All rights reserved.
|
|
//
|
|
|
|
#ifndef LNSTANDARDVERSIONCOMPARATOR_H
|
|
#define LNSTANDARDVERSIONCOMPARATOR_H
|
|
|
|
#import "LNVersionComparisonProtocol.h"
|
|
|
|
/*!
|
|
@class
|
|
@abstract Sparkle's default version comparator.
|
|
@discussion This comparator is adapted from MacPAD, by Kevin Ballard. It's "dumb" in that it does essentially string comparison, in components split by character type.
|
|
*/
|
|
@interface LNStandardVersionComparator : NSObject<LNVersionComparison> { }
|
|
|
|
/*!
|
|
@method
|
|
@abstract Returns a singleton instance of the comparator.
|
|
*/
|
|
+(LNStandardVersionComparator*)defaultComparator;
|
|
|
|
/*!
|
|
@method
|
|
@abstract Compares version strings through textual analysis.
|
|
@discussion See the implementation for more details.
|
|
*/
|
|
-(NSComparisonResult)compareVersion:(NSString*)versionA toVersion:(NSString*)versionB;
|
|
@end
|
|
|
|
#endif
|